Statistics
| Branch: | Revision:

root / env / lib / python2.7 / site-packages / django / contrib / admin / templates / admin / search_form.html @ 1a305335

History | View | Annotate | Download (1.04 KB)

1
{% load i18n admin_static %}
2
{% if cl.search_fields %}
3
<div id="toolbar"><form id="changelist-search" action="" method="get">
4
<div><!-- DIV needed for valid HTML -->
5
<label for="searchbar"><img src="{% static "admin/img/icon_searchbox.png" %}" alt="Search" /></label>
6
<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" />
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 %}pop=1{% endif %}">{% blocktrans with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span>
10
{% endif %}
11
{% for pair in cl.params.items %}
12
    {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endifnotequal %}
13
{% endfor %}
14
</div>
15
</form></div>
16
<script type="text/javascript">document.getElementById("searchbar").focus();</script>
17
{% endif %}