{% if realizations %} <div> Realizacje schematu: <select id='realization-select'> <option value="">--------</option> {% for realization in realizations %} <option value="{{realization.id}}">{{realization.text_rep}}</option> {% endfor %} </select> </div> {% endif %}