ferme #443, ajout des filtres de regions pays disciplines thematiques
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / templates / admin / filter.html
CommitLineData
9692b801 1{% load i18n %}
2{% load smart_if %}
3
4<h3>{% blocktrans with title as filter_title %} By {{ filter_title }} {% endblocktrans %}</h3>
5
6{% if title == 'pays' or title == 'region' or title == 'discipline' or title == 'thematique' %}
7<select style="width: 160px;" onchange="window.location=window.location.pathname+this.options[this.selectedIndex].value">
8{% for choice in choices %}
9 <option{% if choice.selected %} selected="selected"{% endif %} style="width: 130px;"
10 value="{{ choice.query_string|iriencode }}">{{ choice.display }}</option>
11{% endfor %}
12</select>
13
14{% else %}
15<ul>
16{% for choice in choices %}
17 <li{% if choice.selected %} class="selected"{% endif %}>
18 <a href="{{ choice.query_string|iriencode }}">{{ choice.display }}</a></li>
19{% endfor %}
20</ul>
21{% endif %}
22
23