{% extends "wagtailsnippets/snippets/type_index.html" %} {% load i18n wagtailadmin_tags wagtail_airtable_tags %} {% block content %} {% can_import_model model_opts.label as can_import_model %} {% include 'wagtailsnippets/snippets/headers/list_header.html' %}

{# We can't use the icon templatetag on both 4.1 and 4.2 as the class_name arg was changed to classname #}

{% if is_searchable and search_url %}
{% for field in search_form %} {% include "wagtailadmin/shared/field.html" with field=field classname="w-mb-0" sr_only_label=True icon="search" %} {% endfor %}
{% endif %} {% if locales %}
{% endif %}
{% if locale %} {% include 'wagtailadmin/shared/locale_selector.html' with class='c-dropdown--large' %} {% endif %} {% if can_add_snippet %} {% icon name="plus" wrapped=1 %} {% blocktrans trimmed with snippet_type_name=model_opts.verbose_name %}Add {{ snippet_type_name }}{% endblocktrans %} {# TODO: figure out a way of saying "Add a/an [foo]" #} {% endif %}
{% if can_import_model %}
{% csrf_token %}
{% endif %}
{% include "wagtailsnippets/snippets/results.html" %}
{% if filters %} {% include "wagtailadmin/shared/filters.html" %} {% endif %} {% trans "Select all snippets in listing" as select_all_text %} {% include 'wagtailadmin/bulk_actions/footer.html' with select_all_obj_text=select_all_text app_label=model_opts.app_label model_name=model_opts.model_name objects=page_obj %}
{% endblock %}