Template source: search/search_form.html

{% load i18n %}

{% if search_form.q.errors %}
<p class="search-error">{{ search_form.q.errors }}</p>
{% endif %}

<form class="search pull-right relative" id="keyword-listing-search" action="{{ search_form.action_url }}" method="get">
  <div class="input-prepend dropdown">
    <a data-toggle="dropdown" href="#" class="btn btn-white btn-categories dropdown-toggle" title="{% trans 'Select a Category' %}">
        <i class="ss-rows {% if search_form.category.value %}ss-blue{% else %}ss-dark-grey{% endif %}"></i>
        <b class="caret grey"></b></a>{{ search_form.q }} <button type="submit"><i class="ss-search ss-dark-grey"></i></button>
    <input id="id_category" name="category" type="hidden" value="{% if search_form.category.value %}{{ search_form.category.value }}{% else %}0{% endif %}" />
    <dl class="dropdown-menu" role="menu" aria-labelledby="ddabel">
        {% for choice in search_form.fields.category.choices %}
          <dd class="{% if search_form.category.value == choice.0 or not search_form.category.value and forloop.first %} selected{% endif %}" category={{ choice.0 }}><a class="pseudo-link">{{ choice.1 }}</a></dd>
          {% if forloop.first %}
              <dd class="divider"></dd>
          {% endif %}
        {% endfor %}
    </dl>
  </div>    
</form>