1 {% load i18n adminmedia fb_tags %}
3 <form id="changelist-search" action="." method="get">
4 <div><!-- DIV needed for valid HTML -->
5 <label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
6 <input type="text" size="40" name="q" value="{{ q }}" id="searchbar" />
7 {% if query.filter_type %}<input type="hidden" name="filter_type" value="{{ query.filter_type }}" />{% endif %}
8 {% if query.filter_date %}<input type="hidden" name="filter_date" value="{{ query.filter_date }}" />{% endif %}
9 {% if query.o %}<input type="hidden" name="o" value="{{ query.o }}" />{% endif %}
10 {% if query.ot %}<input type="hidden" name="ot" value="{{ query.ot }}" />{% endif %}
11 {% if query.pop %}<input type="hidden" name="pop" value="{{ query.pop }}" />{% endif %}
12 {% if query.type %}<input type="hidden" name="type" value="{{ query.type }}" />{% endif %}
13 {% if query.format %}<input type="hidden" name="format" value="{{ query.format }}" />{% endif %}
14 {% if query.dir %}<input type="hidden" name="dir" value="{{ query.dir }}" />{% endif %}
15 <input type="submit" value="{% trans "Go" %}" />
16 {% if results_var.results_total %}
17 {% if query.filter_type or query.filter_date or query.q %}
18 <span class="small quiet">{% blocktrans count results_var.results_current as counter %}{{ counter }} Item found{% plural %}{{ counter }} Items found{% endblocktrans %}
19 (<strong><a href="{% query_string "" "filter_date,filter_type,q" %}">{% blocktrans count results_var.results_total as counter %}{{ counter }} Item total{% plural %}{{ counter }} Items total{% endblocktrans %}</a></strong>)</span>
25 <script type="text/javascript">document.getElementById("searchbar").focus();</script>