2005-11-27 06:46:31 +08:00
|
|
|
{% load adminmedia %}
|
2005-11-28 18:29:41 +08:00
|
|
|
{% load i18n %}
|
2005-11-26 05:20:09 +08:00
|
|
|
{% if cl.lookup_opts.admin.search_fields %}
|
|
|
|
<div id="toolbar"><form id="changelist-search" action="" method="get">
|
2005-12-29 07:32:56 +08:00
|
|
|
<div><!-- DIV needed for valid HTML -->
|
2006-05-02 09:31:56 +08:00
|
|
|
<label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
|
2005-11-26 05:20:09 +08:00
|
|
|
<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query|escape }}" id="searchbar" />
|
2005-11-28 18:29:41 +08:00
|
|
|
<input type="submit" value="{% trans 'Go' %}" />
|
2005-11-26 05:20:09 +08:00
|
|
|
{% if show_result_count %}
|
2006-12-06 14:23:59 +08:00
|
|
|
<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>
|
2005-11-26 05:20:09 +08:00
|
|
|
{% endif %}
|
|
|
|
{% for pair in cl.params.items %}
|
|
|
|
{% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0|escape }}" value="{{ pair.1|escape }}"/>{% endifnotequal %}
|
|
|
|
{% endfor %}
|
2005-12-29 07:32:56 +08:00
|
|
|
</div>
|
2005-11-26 05:20:09 +08:00
|
|
|
</form></div>
|
|
|
|
<script type="text/javascript">document.getElementById("searchbar").focus();</script>
|
|
|
|
{% endif %}
|