{% extends "wagtailsnippets/snippets/index.html" %} {% load i18n wagtailadmin_tags wagtail_airtable_tags %} {% block content %} {% wagtail_major_version as wagtail_major_version %} {% if wagtail_major_version < 6 %} {% include 'wagtailadmin/shared/headers/slim_header.html' %} {% fragment as base_action_locale %}{% if locale %}{% include 'wagtailadmin/shared/locale_selector.html' with theme="large" %}{% endif %}{% endfragment %} {% fragment as action_url_add_snippet %}{% if can_add_snippet %}{% url view.add_url_name %}{% if locale %}?locale={{ locale.language_code }}{% endif %}{% endif %}{% endfragment %} {% fragment as action_text_snippet %}{% blocktrans trimmed with snippet_type_name=model_opts.verbose_name %}Add {{ snippet_type_name }}{% endblocktrans %}{% endfragment %} {% fragment as extra_actions %} {% if view.list_export %} {% include view.export_buttons_template_name %} {% endif %} {# begin wagtail-airtable customisation for Wagtail 5.2 #} {% can_import_model model_opts.label as can_import_model %} {% if can_add_snippet and can_import_model %}
{% endif %} {# end wagtail-airtable customisation #} {% endfragment %} {% include 'wagtailadmin/shared/header.html' with title=model_opts.verbose_name_plural|capfirst icon=header_icon search_url=search_url base_actions=base_action_locale action_url=action_url_add_snippet action_icon="plus" action_text=action_text_snippet extra_actions=extra_actions search_results_url=index_results_url %}