{% load i18n admin_static %}
{% if cl.search_fields %}
<form id="changelist-search" action="" method="get" class="form-search">
<input type="text" size="40" placeholder="Search" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" autofocus><button type="submit" class="btn btn-info" title="{% trans 'Search' %}"><i class="icon-search icon-white"></i></button>
{% if show_result_count %}
    <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>
{% 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 %}
