{% extends 'base_with_margins.html' %} {% load extras %} {% load highlight %} {% block title %} {% if request.GET.q %} Search results for '{{ request.GET.q }}' {% else %} Search Legislation {% endif %} {% endblock %} {% block content %}
{% include 'partials/search_header.html' %}
{% if selected_facets %}

Clear all filters

{% endif %} {% with facet_name='inferred_status' facet_label='Status' item_list=facets.fields.inferred_status selected_list=selected_facets.inferred_status %} {% include 'partials/search_filter.html' %} {% endwith %} {% with facet_name='bill_type' facet_label='Legislation Type' item_list=facets.fields.bill_type selected_list=selected_facets.bill_type %} {% include 'partials/search_filter.html' %} {% endwith %} {% if facets.fields.topics %} {% with facet_name='topics' facet_label='Topic' item_list=facets.fields.topics selected_list=selected_facets.topics %} {% include 'partials/search_filter.html' %} {% endwith %} {% endif %} {% with facet_name='controlling_body' facet_label='Controlling Body' item_list=facets.fields.controlling_body selected_list=selected_facets.controlling_body %} {% include 'partials/search_filter.html' %} {% endwith %} {% with facet_name='sponsorships' facet_label='Sponsor' item_list=facets.fields.sponsorships selected_list=selected_facets.sponsorships %} {% include 'partials/search_filter.html' %} {% endwith %} {% if facets.fields.legislative_session %} {% if facets.fields.legislative_session|length > 1 %} {% with facet_name='legislative_session' facet_label='Legislative Session' item_list=facets.fields.legislative_session selected_list=selected_facets.legislative_session %} {% include 'partials/search_filter.html' %} {% endwith %} {% endif %} {% endif %}

{% if query or selected_facets %}
{% endif %} {% for result in page.object_list %} {% with r=result %} {% include 'partials/search_result.html' %} {% endwith %} {% include 'partials/tags.html' %} {% empty %} {% include 'partials/empty_search_message.html' %} {% endfor %}
{% if page.has_previous or page.has_next %}
{% endif %} {% endblock %} {% block extra_js %} {{ selected_facets|json_script:"selected-facets" }} {% endblock %}