Added support to dropdown list filter

This commit is contained in:
Fabio Caccamo
2015-11-10 17:35:54 +01:00
parent d2846b7420
commit 9080948f7c
4 changed files with 207 additions and 98 deletions
@@ -0,0 +1,13 @@
{% load i18n admin_interface_tags %}
<div class="list-filter-dropdown">
<h3>{% blocktrans with title as filter_title %} By {{ filter_title }} {% endblocktrans %}</h3>
<div align="right">
<select onChange="javascript:window.location = this.options[this.selectedIndex].value;">
{% for choice in choices %}
<option {% if choice.selected %}selected{% endif %} value="{{ choice.query_string|iriencode }}">{{ choice.display }}</option>
{% endfor %}
</select>
</div>
</div>