{#
/**
 * @file
 * CivicTheme implementation of views exposed form.
 */
#}
{% if q is not empty %}
  {#
  This ensures that, if clean URLs are off, the 'q' is added first,
  as a hidden form element, so that it shows up first in the POST URL.
  #}
  {{ q }}
{% endif %}

{% if single_filter %}
  {% include 'civictheme:single-filter' with {
    theme: theme,
    title: filter_title,
    items: filter_items,
    is_multiple: is_multiple,
    form_attributes: form_attributes,
    form_suffix: form_suffix,
  } only %}
{% elseif group_filter %}
  {% include 'civictheme:group-filter' with {
    theme: theme,
    title: filter_title,
    items: filter_items,
    form_attributes: form_attributes,
    form_suffix: form_suffix,
  } %}
{% else %}
  {{ form }}
{% endif %}
