+ <input name="state_type" type="hidden" value="{{ type }}" />
+ {% endfor %}
+ </div>
</form>
</div>
<div id="changelist-filter">
- <h2>{% trans "Filter" %}</h2>
+ <h2 id="filter-panel-header">{% trans "Filter" %}<small> ({% trans "Click to show/hide" %})</small></h2>
+ <div id="filter-panel">
<h3>{% trans "By type" %}</h3>
<ul>
+ <li {% if not type_filter %} class="selected"{% endif %}>
+ <a id="all-node-type-link" href="#all" title="{% trans "click to clear the type filter" %}">{% trans "all" %}</a>
+ </li>
{% for type, name in node_types %}
- <li{% ifequal filter_form.node_type.data type %} class="selected"{% endifequal %}>
+ <li{% if type|contained_in:type_filter %} class="selected" title="{% trans "click to remove from the filter" %}"{% else %} title="{% trans "click to add to the filter" %}"{% endif %}>
<a class="node-type-link" href="#{{ type }}">{{ name }}</a>
+ <li{% if state_type|contained_in:state_filter %} class="selected" title="{% trans "click to remove from the filter" %}"{% else %} title="{% trans "click to add to the filter" %}"{% endif %}>