3 {% if cl.search_fields %}
4 <div id="toolbar"><form id="changelist-search" action="" method="get">
5 <div><!-- DIV needed for valid HTML -->
6 <label for="searchbar"><img src="{% static "img/admin/icon_searchbox.png" %}" alt="Search" /></label>
7 <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" />
8 <input type="submit" value="{% trans 'Go' %}" />
9 {% if show_result_count %}
10 <span class="small quiet">{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}pop=1{% endif %}">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span>
12 {% for pair in cl.params.items %}
13 {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endifnotequal %}
17 <script type="text/javascript">document.getElementById("searchbar").focus();</script>