PageRenderTime 107ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 64ms app.codeStats 0ms

/django/contrib/admin/templates/admin/search_form.html

https://code.google.com/p/mango-py/
HTML | 18 lines | 18 code | 0 blank | 0 comment | 0 complexity | fbb3769756dfd4aacb58d2771183ea10 MD5 | raw file
 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 }}" id="searchbar" />
 8<input type="submit" value="{% trans 'Search' %}" />
 9{% if show_result_count %}
10    <span class="small quiet">{% blocktrans count cl.result_count as counter %}{{ counter }} 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 }}" value="{{ pair.1 }}"/>{% endifnotequal %}
14{% endfor %}
15</div>
16</form></div>
17<script type="text/javascript">document.getElementById("searchbar").focus();</script>
18{% endif %}