Source

django-admintools-bootstrap / admintools_bootstrap / templates / admin / search_form.html

Full commit
{% load adminmedia %}
{% load i18n %}
{% if cl.search_fields %}
<form id="changelist-search" action="" method="get">
<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" placeholder="{% trans "Search" %}" class="search-query" />
{% if show_result_count %}
    <span class="small quiet search-results">{% 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>
{% endif %}
{% for pair in cl.params.items %}
    {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endifnotequal %}
{% endfor %}
</form>
{% endif %}