Historique d'un objet: ajout d'un bouton précédent
[auf_rh_dae.git] / project / rh / templates / admin / filter_select.html
CommitLineData
fd009814
PP
1{% load i18n %}
2
3<h3>{% blocktrans with title as filter_title %} By {{ filter_title }} {% endblocktrans %}</h3>
4{% if choices|length > 5 %}
5<select style="width: 160px;" onchange="window.location=window.location.pathname+this.options[this.selectedIndex].value">
6{% for choice in choices %}
7 <option{% if choice.selected %} selected="selected"{% endif %} style="width: 130px;"
8 value="{{ choice.query_string|iriencode }}">{{ choice.display }}</option>
9{% endfor %}
10</select>
11
12{% else %}
13<ul>
14{% for choice in choices %}
15 <li{% if choice.selected %} class="selected"{% endif %}>
16 <a href="{{ choice.query_string|iriencode }}">{{ choice.display }}</a></li>
17{% endfor %}
18</ul>
19{% endif %}
20
21