sort_dialog.html 748 Bytes
<script type="text/javascript" src="{{ STATIC_URL }}js/sort-dialog.js"></script>

<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">  
      {{rule.ui_name}}
      <select id="order-{{rule.code_name}}">
        <option value="asc">Rosnąco</option>
        <option value="desc">Malejąco</option>
      </select>
      {% if rule.code_name == "entry" %}
        <input type="checkbox" id="entries_a_tergo"/> a tergo 
      {% endif %}
    </li>
  {% endfor %}
  </ul>
  
  <input type="button" id="save-sort-order" value="Zatwierdź"/>
  <input type="button" id="cancel-sort-order" value="Anuluj"/>
</div>