{% extends "wagtailsnippets/snippets/index.html" %} {% load static wagtailadmin_tags %} {% block slim_header %} {% if view.parent or not breadcrumbs_items %} {{ block.super }} {% else %} {# The layout radios sit in the header's search form, so switching reloads the results like a filter. #} {% fragment as extra_form_fields %}
{% include "wagtail_in_a_tree/layout_toggle.html" with layout=view.layout only %}
{% endfragment %} {% include "wagtail_in_a_tree/listing_header.html" with breadcrumbs_items=breadcrumbs_items side_panels=side_panels history_url=history_url title=header_title search_url=index_results_url search_form=search_form filters=filters buttons=header_buttons icon_name=header_icon extra_form_fields=extra_form_fields only %} {% endif %} {% endblock slim_header %} {% block extra_css %} {{ block.super }} {% endblock extra_css %} {% block extra_js %} {{ block.super }} {% endblock extra_js %}