our pages are xhtml, so customize replace the django admin search form
[htsworkflow.git] / htsworkflow / templates / admin / search_form.html
1 {% load i18n static %}
2 {% if cl.search_fields %}
3 <div id="toolbar"><form action="" id="changelist-search" method="get">
4 <div><!-- DIV needed for valid HTML -->
5 <label for="searchbar"><img src="{% static "admin/img/search.svg" %}" alt="Search" /></label>
6 <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" autofocus="true" />
7 <input type="submit" value="{% trans 'Search' %}" />
8 {% if show_result_count %}
9     <span class="small quiet">{% blocktrans count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}_popup=1{% endif %}">{% if cl.show_full_result_count %}{% blocktrans with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktrans %}{% else %}{% trans "Show all" %}{% endif %}</a>)</span>
10 {% endif %}
11 {% for pair in cl.params.items %}
12     {% if pair.0 != search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endif %}
13 {% endfor %}
14 </div>
15 </form></div>
16 {% endif %}