nice filter
[auf_rh_dae.git] / project / templates / admin / filter.html
CommitLineData
790b9793
OL
1{% load i18n %}
2
3<h3>{% blocktrans with title as filter_title %} By {{ filter_title }} {% endblocktrans %}</h3>
4{% if choices|length > 2 %}
5<select dir="rtl" style="width: 95%;" onchange="window.location=window.location.pathname+this.options[this.selectedIndex].value">
6{% for choice in choices %}
7 <option{% if choice.selected %} selected="selected"{% endif %}
8 dir="ltr"
9 value="{{ choice.query_string|iriencode }}">{{ choice.display }}</option>
10{% endfor %}
11</select>
12
13{% else %}
14<ul>
15{% for choice in choices %}
16 <li{% if choice.selected %} class="selected"{% endif %}>
17 <a href="{{ choice.query_string|iriencode }}">{{ choice.display }}</a></li>
18{% endfor %}
19</ul>
20{% endif %}