diff --git a/wagtail_airtable/templates/wagtail_airtable/airtable_import_listing.html b/wagtail_airtable/templates/wagtail_airtable/airtable_import_listing.html index 12eee3f..95d865a 100644 --- a/wagtail_airtable/templates/wagtail_airtable/airtable_import_listing.html +++ b/wagtail_airtable/templates/wagtail_airtable/airtable_import_listing.html @@ -1,32 +1,35 @@ {% extends "wagtailadmin/base.html" %} -{% load wagtailadmin_tags %} +{% load i18n wagtailadmin_tags %} + {% block titletag %}Import Airtable Sheets{% endblock %} + {% block content %} - {% include "wagtailadmin/shared/header.html" with title="Airtable Import" %} + {% include "wagtailadmin/shared/header.html" with title="Airtable Import" %} + +
+

Models you can import from Airtable

+ {% for model_name, model_path, is_airtable_enabled, grouped_models in models %} +

{{ model_name }}

+ {% if grouped_models %} +
+

When you import {{ model_name }} you'll also be importing these ({{ grouped_models|length }}) as well: {% for model_name in grouped_models %}{{ model_name }}{% if not forloop.last %}, {% endif %} {% endfor %}

+
+ {% endif %} + {% if is_airtable_enabled %} +
+ {% csrf_token %} + -
-

Models you can import from Airtable

- {% for model_name, model_path, is_airtable_enabled, grouped_models in models %} -

{{ model_name }}

- {% if grouped_models %} -
-

When you import {{ model_name }} you'll also be importing these ({{ grouped_models|length }}) as well: {% for model_name in grouped_models %}{{ model_name }}{% if not forloop.last %}, {% endif %} {% endfor %}

-
- {% endif %} - {% if is_airtable_enabled %} - - {% csrf_token %} - - - - {% else %} - {{ model_name }} is not setup with the correct Airtable settings - {% endif %} - {% empty %} - There are no models configured yet - {% endfor %} -
+ + + {% else %} + {{ model_name }} is not setup with the correct Airtable settings + {% endif %} + {% empty %} + There are no models configured yet + {% endfor %} +
{% endblock %}