~canonical-django/canonical-django/project-template

« back to all changes in this revision

Viewing changes to trunk/python-packages/django/contrib/admin/templates/admin/search_form.html

  • Committer: Matthew Nuzum
  • Date: 2008-11-13 05:46:03 UTC
  • Revision ID: matthew.nuzum@canonical.com-20081113054603-v0kvr6z6xyexvqt3
adding to version control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% load adminmedia %}
 
2
{% load i18n %}
 
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="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
 
7
<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query|escape }}" 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>
 
11
{% endif %}
 
12
{% for pair in cl.params.items %}
 
13
    {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0|escape }}" value="{{ pair.1|escape }}"/>{% endifnotequal %}
 
14
{% endfor %}
 
15
</div>
 
16
</form></div>
 
17
<script type="text/javascript">document.getElementById("searchbar").focus();</script>
 
18
{% endif %}