sort_dialog.html 1.02 KB
{% load i18n %}
<div id="sort-dialog-form" title="{% trans 'Sort order' %}">
    <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">{% trans 'Incremental' %}</option>
                        <option value="desc">{% trans 'Decremental' %}</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="{% trans 'Confirm' %}"/>
    <input type="button" id="cancel-sort-order" value="{% trans 'Cancel' %}"/>
</div>