<div id="sort-dialog-form" title="Porządek sortowania"> <ul id='sort-rule-list'> {% for rule in sort_rules %} <li id="{{ rule.code_name }}" class="ui-state-default"> <span class="sort-column">{{ rule.ui_name }}</span> <span class="sort-dir"> <select id="order-{{ rule.code_name }}"> <option value="asc">Rosnąco</option> <option value="desc">Malejąco</option> </select> </span> {% if rule.code_name == "entry" %} <span class="sort-a-tergo"> <input type="checkbox" id="entries_a_tergo"/> a tergo </span> {% endif %} </li> {% endfor %} </ul> <input type="button" id="save-sort-order" value="Zatwierdź"/> <input type="button" id="cancel-sort-order" value="Anuluj"/> </div>