Admin: filter_horizontale est plus large
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / templates / admin / filter.html
1 {% load i18n %}
2 {% load smart_if %}
3
4 <h3>{% blocktrans with title as filter_title %} By {{ filter_title }} {% endblocktrans %}</h3>
5 {% if choices|length > 5 %}
6 <select style="width: 160px;" onchange="window.location=window.location.pathname+this.options[this.selectedIndex].value">
7 {% for choice in choices %}
8 <option{% if choice.selected %} selected="selected"{% endif %} style="width: 130px;"
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 %}
21
22