filter.html 621 B

123456789101112
  1. {% load i18n %}
  2. <select class="changelist-filter-select{% if spec.ajax_attrs %} ajax{% endif %}"{% if spec.ajax_attrs %}{{ spec.ajax_attrs }}{% endif %}>
  3. {% for choice in choices %}
  4. {% if forloop.first %}
  5. <option data-url="{{ choice.query_string|iriencode }}">{% blocktrans with filter_title=title %}{{ filter_title }}{% endblocktrans %}</option>
  6. <option disabled>---</option>
  7. {% else %}
  8. <option{% if choice.selected %} selected{% endif %} data-url="{{ choice.query_string|iriencode }}">{{ choice.display }}</option>
  9. {% endif %}
  10. {% endfor %}
  11. </select>