From 01986cfa1702929352ac8b6d58ada6070da2c700 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 9 Feb 2022 23:30:48 -0700 Subject: [PATCH] Indent templates with djhtml --- docs/_templates/layout.html | 142 +++++----- docs/_templates/search.html | 156 +++++------ docs/_templates/searchbox.html | 12 +- wagtail/admin/templates/wagtailadmin/404.html | 2 +- .../account/password_reset/confirm.html | 94 +++---- .../admin/templates/wagtailadmin/base.html | 80 +++--- .../confirmation/form_with_fields.html | 6 +- .../list_items_with_no_access.html | 16 +- .../wagtailadmin/bulk_actions/footer.html | 2 +- .../bulk_actions/listing_checkbox_cell.html | 8 +- .../wagtailadmin/chooser/browse.html | 2 +- .../chooser/confirm_external_to_internal.html | 28 +- .../collections/_privacy_switch.html | 24 +- .../edit_handlers/field_row_panel.html | 6 +- .../edit_handlers/inline_panel.html | 6 +- .../edit_handlers/inline_panel_child.html | 14 +- .../edit_handlers/object_list.html | 10 +- .../admin/templates/wagtailadmin/home.html | 6 +- .../wagtailadmin/home/locked_pages.html | 112 ++++---- .../home/pages_for_moderation.html | 150 +++++----- .../wagtailadmin/home/recent_edits.html | 102 +++---- .../user_pages_in_workflow_moderation.html | 108 ++++---- .../home/workflow_pages_to_moderate.html | 116 ++++---- .../admin/templates/wagtailadmin/login.html | 116 ++++---- .../wagtailadmin/notifications/base.html | 258 +++++++++--------- .../notifications/updated_comments.html | 26 +- .../wagtailadmin/pages/_privacy_switch.html | 44 +-- .../wagtailadmin/pages/action_menu/menu.html | 2 +- .../bulk_actions/confirm_bulk_delete.html | 46 ++-- .../pages/bulk_actions/confirm_bulk_move.html | 58 ++-- .../bulk_actions/confirm_bulk_publish.html | 60 ++-- .../bulk_actions/confirm_bulk_unpublish.html | 60 ++-- .../list_items_with_no_access.html | 10 +- .../wagtailadmin/pages/confirm_unpublish.html | 22 +- .../pages/confirm_workflow_cancellation.html | 20 +- .../templates/wagtailadmin/pages/create.html | 14 +- .../templates/wagtailadmin/pages/edit.html | 164 +++++------ .../templates/wagtailadmin/pages/index.html | 8 +- .../pages/listing/_button_with_dropdown.html | 14 +- .../wagtailadmin/pages/listing/_buttons.html | 2 +- .../pages/listing/_list_explore.html | 2 +- .../listing/_parent_page_title_explore.html | 6 +- .../pages/listing/_table_headers_explore.html | 24 +- .../pages/move_choose_destination.html | 4 +- .../pages/privacy_switch_panel.html | 36 +-- .../pages/revisions/_actions.html | 14 +- .../wagtailadmin/pages/revisions/compare.html | 34 +-- .../pages/workflow_action_modal.html | 2 +- ...collection_member_permissions_formset.html | 8 +- .../wagtailadmin/reports/base_report.html | 4 +- .../reports/listing/_list_page_report.html | 32 +-- .../reports/listing/_list_unlock.html | 2 +- .../wagtailadmin/shared/breadcrumb.html | 6 +- .../shared/collection_chooser.html | 2 +- .../shared/explorer_menu_item.html | 4 +- .../templates/wagtailadmin/shared/header.html | 4 +- .../templates/wagtailadmin/shared/icon.html | 24 +- .../templates/wagtailadmin/shared/icons.html | 20 +- .../wagtailadmin/shared/last_updated.html | 6 +- .../wagtailadmin/shared/locale_selector.html | 14 +- .../wagtailadmin/shared/menu_item.html | 4 +- .../wagtailadmin/shared/non_field_errors.html | 14 +- .../wagtailadmin/shared/wagtail_icon.html | 14 +- .../wagtailadmin/shared/workflow_status.html | 70 ++--- .../templates/wagtailadmin/skeleton.html | 158 +++++------ .../templates/wagtailadmin/userbar/base.html | 28 +- .../wagtailadmin/userbar/item_page_add.html | 4 +- .../userbar/item_page_approve.html | 4 +- .../wagtailadmin/userbar/item_page_edit.html | 4 +- .../userbar/item_page_explore.html | 4 +- .../userbar/item_page_reject.html | 4 +- .../wagtailadmin/widgets/daterange_input.html | 2 +- .../wagtailadmin/widgets/time_input.html | 2 +- .../workflows/confirm_delete.html | 2 +- .../wagtailadmin/workflows/edit.html | 2 +- .../wagtailadmin/workflows/edit_task.html | 18 +- .../includes/workflow_pages_formset.html | 8 +- .../wagtailadmin/workflows/index.html | 2 +- .../workflows/task_chooser/chooser.html | 14 +- .../task_chooser/includes/results.html | 22 +- .../wagtailadmin/workflows/task_index.html | 2 +- .../workflows/workflow_status.html | 64 ++--- .../wagtailforms/index_submissions.html | 4 +- .../wagtailforms/list_submissions.html | 62 ++--- .../templates/modeladmin/choose_parent.html | 34 +-- .../templates/modeladmin/includes/filter.html | 8 +- .../includes/header_with_history.html | 26 +- .../modeladmin/includes/result_list.html | 36 +-- .../modeladmin/includes/result_row_value.html | 10 +- .../modeladmin/includes/search_form.html | 30 +- .../templates/modeladmin/index.html | 18 +- .../templates/modeladmin/inspect.html | 8 +- .../modeladmin/prepopulated_slugs.html | 6 +- .../templates/wagtailredirects/results.html | 16 +- .../includes/searchpromotions_formset.html | 6 +- .../wagtailsearchpromotions/index.html | 2 +- .../wagtailsearchpromotions/results.html | 12 +- .../templates/wagtailsettings/edit.html | 22 +- .../templates/wagtailstyleguide/base.html | 32 +-- .../templates/table_block/blocks/table.html | 88 +++--- .../typed_table_block/typed_table_block.html | 12 +- .../bulk_actions/confirm_bulk_add_tags.html | 32 +-- .../confirm_bulk_add_to_collection.html | 32 +-- .../bulk_actions/confirm_bulk_delete.html | 40 +-- .../list_items_with_no_access.html | 4 +- .../wagtaildocs/chooser/results.html | 32 +-- .../wagtaildocs/documents/confirm_delete.html | 4 +- .../wagtaildocs/documents/results.html | 14 +- .../homepage/site_summary_documents.html | 10 +- .../templates/wagtaildocs/multiple/add.html | 14 +- .../bulk_actions/confirm_bulk_add_tags.html | 32 +-- .../confirm_bulk_add_to_collection.html | 36 +-- .../bulk_actions/confirm_bulk_delete.html | 44 +-- .../list_items_with_no_access.html | 10 +- .../wagtailimages/chooser/results.html | 10 +- .../homepage/site_summary_images.html | 10 +- .../wagtailimages/images/_file_field.html | 2 +- .../templates/wagtailimages/images/index.html | 30 +- .../wagtailimages/images/results.html | 10 +- .../templates/wagtailimages/multiple/add.html | 14 +- .../home/templates/home/welcome_page.html | 88 +++--- .../project_name/templates/404.html | 4 +- .../project_name/templates/base.html | 10 +- .../search/templates/search/search.html | 50 ++-- .../wagtailsearch/queries/chooser_field.html | 6 +- .../wagtailsearch/search_results.html | 36 +-- .../wagtailsnippets/chooser/results.html | 12 +- .../snippets/_header_with_history.html | 26 +- .../snippets/action_menu/menu.html | 2 +- .../snippets/confirm_delete.html | 6 +- .../wagtailsnippets/snippets/edit.html | 8 +- .../wagtailsnippets/snippets/results.html | 12 +- .../testapp/templates/tests/event_page.html | 30 +- .../templates/tests/form_page_landing.html | 6 +- ...page_with_custom_form_builder_landing.html | 6 +- .../confirm_bulk_assign_role.html | 28 +- .../bulk_actions/confirm_bulk_delete.html | 28 +- .../confirm_bulk_set_active_state.html | 42 +-- .../list_items_with_no_access.html | 2 +- .../includes/formatted_permissions.html | 74 ++--- .../includes/page_permissions_formset.html | 8 +- .../templates/wagtailusers/users/index.html | 4 +- .../templates/wagtailusers/users/results.html | 14 +- 143 files changed, 2067 insertions(+), 2067 deletions(-) diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 44881ff3df..2abf5be9a5 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -4,83 +4,83 @@ {% set docsearch_base = 'https://cdn.jsdelivr.net/npm/docsearch.js@' ~ docsearch_version ~ '/dist/cdn/' %} {% block extrahead %} - - - + + + {% endblock %} {% block search %} - - - + + + docSearchReady(); + {% endblock %} diff --git a/docs/_templates/search.html b/docs/_templates/search.html index b49165fc14..9349bc9514 100644 --- a/docs/_templates/search.html +++ b/docs/_templates/search.html @@ -2,100 +2,100 @@ {% set title = _('Search') %} {% block body %} - + -
-
+
+
{% endblock %} {% block footer %} -{{ super() }} - + window.addEventListener('DOMContentLoaded', runSearchPageSearch) + {% endblock %} diff --git a/docs/_templates/searchbox.html b/docs/_templates/searchbox.html index cea830ffbd..9dd7fc4280 100644 --- a/docs/_templates/searchbox.html +++ b/docs/_templates/searchbox.html @@ -1,8 +1,8 @@ {%- if builder != "singlehtml" %} - + {%- endif %} diff --git a/wagtail/admin/templates/wagtailadmin/404.html b/wagtail/admin/templates/wagtailadmin/404.html index 5530c24aba..5cf309c718 100644 --- a/wagtail/admin/templates/wagtailadmin/404.html +++ b/wagtail/admin/templates/wagtailadmin/404.html @@ -19,7 +19,7 @@

- {% trans "Error 404" %} + {% trans "Error 404" %}

diff --git a/wagtail/admin/templates/wagtailadmin/account/password_reset/confirm.html b/wagtail/admin/templates/wagtailadmin/account/password_reset/confirm.html index a86ef0a253..a007134427 100644 --- a/wagtail/admin/templates/wagtailadmin/account/password_reset/confirm.html +++ b/wagtail/admin/templates/wagtailadmin/account/password_reset/confirm.html @@ -17,56 +17,56 @@ {% block furniture %}

- {% if validlink %} -
- {% csrf_token %} -

{% trans "Set your new password" %}

+ {% if validlink %} + + {% csrf_token %} +

{% trans "Set your new password" %}

-
    -
  • -
    - {{ form.new_password1.label_tag }} - {{ form.new_password1 }} +
      +
    • +
      + {{ form.new_password1.label_tag }} + {{ form.new_password1 }} - {% if form.new_password1.errors %} -
      - {% for error in form.new_password1.errors %} -

      {{ error }}

      - {% endfor %} -
      - {% endif %} -
      -
    • -
    • -
      - {{ form.new_password2.label_tag }} - {{ form.new_password2 }} + {% if form.new_password1.errors %} +
      + {% for error in form.new_password1.errors %} +

      {{ error }}

      + {% endfor %} +
      + {% endif %} +
      +
    • +
    • +
      + {{ form.new_password2.label_tag }} + {{ form.new_password2 }} - {% if form.new_password2.errors %} -
      - {% for error in form.new_password2.errors %} -

      {{ error }}

      - {% endfor %} -
      - {% endif %} -
      -
    • -
    • - -
    • -
    - - {% else %} -

    {% trans "Invalid password reset link" %}

    -
    -
      -
    • - {% trans "The password reset link was invalid, possibly because it has already been used." %} -
    • -
    -
    - {% trans 'Request a new password reset' %} - {% endif %} + {% if form.new_password2.errors %} +
    + {% for error in form.new_password2.errors %} +

    {{ error }}

    + {% endfor %} +
    + {% endif %} +
    +
  • +
  • + +
  • +
+ + {% else %} +

{% trans "Invalid password reset link" %}

+
+
    +
  • + {% trans "The password reset link was invalid, possibly because it has already been used." %} +
  • +
+
+ {% trans 'Request a new password reset' %} + {% endif %}
{% endblock %} diff --git a/wagtail/admin/templates/wagtailadmin/base.html b/wagtail/admin/templates/wagtailadmin/base.html index 9a702b5994..ca62b526eb 100644 --- a/wagtail/admin/templates/wagtailadmin/base.html +++ b/wagtail/admin/templates/wagtailadmin/base.html @@ -5,37 +5,37 @@ {% slim_sidebar_enabled as slim_sidebar_enabled %} {% if slim_sidebar_enabled %} - {% sidebar_props %} - + {% sidebar_props %} + {% else %} - + {# Backwards-compatibility for branding_logo customisations in legacy sidebar. #} + {# RemovedInWagtail218Warning Remove when removing the legacy sidebar. #} + {% endif %}
@@ -46,17 +46,17 @@
    {% for message in messages %}
  • - {% if message.level_tag == "error" %} - {# There is no error icon, use warning icon instead #} - {% icon name="warning" class_name="messages-icon" %} - {% elif message.extra_tags == "lock" %} - {% icon name="lock" class_name="messages-icon" %} - {% elif message.extra_tags == "unlock" %} - {% icon name="lock-open" class_name="messages-icon" %} - {% else %} - {% icon name=message.level_tag class_name="messages-icon" %} - {% endif %} - {{ message|safe }} + {% if message.level_tag == "error" %} + {# There is no error icon, use warning icon instead #} + {% icon name="warning" class_name="messages-icon" %} + {% elif message.extra_tags == "lock" %} + {% icon name="lock" class_name="messages-icon" %} + {% elif message.extra_tags == "unlock" %} + {% icon name="lock-open" class_name="messages-icon" %} + {% else %} + {% icon name=message.level_tag class_name="messages-icon" %} + {% endif %} + {{ message|safe }}
  • {% endfor %}
@@ -64,7 +64,7 @@
{% if not slim_sidebar_enabled %} - + {% endif %} {% block content %}{% endblock %} diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/form_with_fields.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/form_with_fields.html index 4a2ffe2f37..92a4aab60f 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/form_with_fields.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/form_with_fields.html @@ -1,7 +1,7 @@ {% extends './form.html' %} {% block form_fields %} - + {% endblock form_fields %} diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/list_items_with_no_access.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/list_items_with_no_access.html index 8a93b3a9df..1febc300a8 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/list_items_with_no_access.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/list_items_with_no_access.html @@ -1,10 +1,10 @@ {% if items %} -

{{ no_access_msg }}

- +

{{ no_access_msg }}

+ {% endif %} diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html index 5a1478ddf8..ec512dda28 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html @@ -6,7 +6,7 @@ {% if objects.has_other_pages %} - + {% endif %} diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/listing_checkbox_cell.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/listing_checkbox_cell.html index ce58a000f8..bedb1ee76f 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/listing_checkbox_cell.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/listing_checkbox_cell.html @@ -1,9 +1,9 @@ {% load i18n l10n wagtailadmin_tags %} diff --git a/wagtail/admin/templates/wagtailadmin/chooser/browse.html b/wagtail/admin/templates/wagtailadmin/chooser/browse.html index dac5a3819e..e2551d10f4 100644 --- a/wagtail/admin/templates/wagtailadmin/chooser/browse.html +++ b/wagtail/admin/templates/wagtailadmin/chooser/browse.html @@ -14,7 +14,7 @@

{% blocktrans with type=page_type_names|join:", " count counter=page_type_names|length %} Only pages of type "{{ type }}" may be chosen for this field. Search results will exclude pages of other types. - {% plural %} + {% plural %} Only the following page types may be chosen for this field: {{ type }}. Search results will exclude pages of other types. {% endblocktrans %}

diff --git a/wagtail/admin/templates/wagtailadmin/chooser/confirm_external_to_internal.html b/wagtail/admin/templates/wagtailadmin/chooser/confirm_external_to_internal.html index 3b53d6bafc..bc3855e171 100644 --- a/wagtail/admin/templates/wagtailadmin/chooser/confirm_external_to_internal.html +++ b/wagtail/admin/templates/wagtailadmin/chooser/confirm_external_to_internal.html @@ -3,19 +3,19 @@ {% include "wagtailadmin/shared/header.html" with title=convert_str %}
-

- {% blocktrans %} - The URL you entered, {{ submitted_url }}, - looks like it matches the internal page {{ page }}, which has the URL - {{ internal_url }}. - {% endblocktrans %} -

-

- {% blocktrans %} - Converting this to an internal link to {{ page }} would make the link more robust. - Would you like to do this? - {% endblocktrans %} -

+

+ {% blocktrans %} + The URL you entered, {{ submitted_url }}, + looks like it matches the internal page {{ page }}, which has the URL + {{ internal_url }}. + {% endblocktrans %} +

+

+ {% blocktrans %} + Converting this to an internal link to {{ page }} would make the link more robust. + Would you like to do this? + {% endblocktrans %} +

-
\ No newline at end of file + diff --git a/wagtail/admin/templates/wagtailadmin/collections/_privacy_switch.html b/wagtail/admin/templates/wagtailadmin/collections/_privacy_switch.html index 029aa745cd..2ad2fcc55b 100644 --- a/wagtail/admin/templates/wagtailadmin/collections/_privacy_switch.html +++ b/wagtail/admin/templates/wagtailadmin/collections/_privacy_switch.html @@ -3,16 +3,16 @@ {% test_collection_is_public collection as is_public %} {% if not collection.is_root %} -
- {% trans "Privacy" %} - -
+
+ {% trans "Privacy" %} + +
{% endif %} diff --git a/wagtail/admin/templates/wagtailadmin/edit_handlers/field_row_panel.html b/wagtail/admin/templates/wagtailadmin/edit_handlers/field_row_panel.html index ead32db1a3..5f6fb093f7 100644 --- a/wagtail/admin/templates/wagtailadmin/edit_handlers/field_row_panel.html +++ b/wagtail/admin/templates/wagtailadmin/edit_handlers/field_row_panel.html @@ -1,7 +1,7 @@ diff --git a/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel.html b/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel.html index 9860b4ef00..d288c5f4d4 100644 --- a/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel.html +++ b/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel.html @@ -18,9 +18,9 @@

diff --git a/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel_child.html b/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel_child.html index 69c1186a4f..b80829dbe9 100644 --- a/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel_child.html +++ b/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel_child.html @@ -1,13 +1,13 @@ {% load i18n wagtailadmin_tags %}

  • {% if child.form.non_field_errors %} - + {% endif %} + + {% endif %} diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/index.html b/wagtail/contrib/modeladmin/templates/modeladmin/index.html index a7650b7214..3a069523b9 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/index.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/index.html @@ -61,10 +61,10 @@ {% block filters %} {% if view.has_filters and all_count %} -
    -

    {% trans 'Filter' %}

    - {% for spec in view.filter_specs %}{% admin_list_filter view spec %}{% endfor %} -
    +
    +

    {% trans 'Filter' %}

    + {% for spec in view.filter_specs %}{% admin_list_filter view spec %}{% endfor %} +
    {% endif %} {% endblock %} @@ -79,11 +79,11 @@ {% else %}

    {% blocktrans with view.verbose_name_plural as name %}No {{ name }} have been created yet.{% endblocktrans %} - {% if user_can_create %} - {% blocktrans with view.create_url as url %} - Why not add one? - {% endblocktrans %} - {% endif %}

    + {% if user_can_create %} + {% blocktrans with view.create_url as url %} + Why not add one? + {% endblocktrans %} + {% endif %}

    {% endif %} {% else %} diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html b/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html index 8a7f4d2a35..ca0bae7663 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html @@ -30,10 +30,10 @@ {% block fields_output %} {% if fields %}
    - {% for field in fields %} -
    {{ field.label }}
    -
    {{ field.value }}
    - {% endfor %} + {% for field in fields %} +
    {{ field.label }}
    +
    {{ field.value }}
    + {% endfor %}
    {% endif %} {% endblock %} diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/prepopulated_slugs.html b/wagtail/contrib/modeladmin/templates/modeladmin/prepopulated_slugs.html index 17131db616..d645ff3771 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/prepopulated_slugs.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/prepopulated_slugs.html @@ -1,6 +1,6 @@ {% load l10n static %} diff --git a/wagtail/contrib/redirects/templates/wagtailredirects/results.html b/wagtail/contrib/redirects/templates/wagtailredirects/results.html index 5c17705390..0f6e191fec 100644 --- a/wagtail/contrib/redirects/templates/wagtailredirects/results.html +++ b/wagtail/contrib/redirects/templates/wagtailredirects/results.html @@ -2,11 +2,11 @@ {% if redirects %} {% if query_string %}

    - {% blocktrans count counter=redirects.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=redirects.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% endif %} @@ -14,9 +14,9 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=redirects linkurl="wagtailredirects:index" %} {% else %} - {% if query_string %} -

    {% blocktrans %}Sorry, no redirects match "{{ query_string }}"{% endblocktrans %}

    - {% else %} + {% if query_string %} +

    {% blocktrans %}Sorry, no redirects match "{{ query_string }}"{% endblocktrans %}

    + {% else %} {% url 'wagtailredirects:add' as wagtailredirects_add_redirect_url %}

    {% blocktrans %}No redirects have been created. Why not add one?{% endblocktrans %}

    {% endif %} diff --git a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotions_formset.html b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotions_formset.html index 951a92b28c..6913fd7927 100644 --- a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotions_formset.html +++ b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotions_formset.html @@ -7,9 +7,9 @@

    diff --git a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index.html b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index.html index 6466a18045..b464a38eaf 100644 --- a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index.html +++ b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index.html @@ -20,7 +20,7 @@ {% url "wagtailsearchpromotions:add" as add_link %} {% include "wagtailadmin/shared/header.html" with title=sp_title_str action_url=add_link icon="pick" action_text=sp_text_str search_url="wagtailsearchpromotions:index" %} -

    +
    {% include "wagtailsearchpromotions/results.html" %}
    diff --git a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/results.html b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/results.html index 0572336e55..bd72322da8 100644 --- a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/results.html +++ b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/results.html @@ -2,11 +2,11 @@ {% if queries %} {% if is_searching %}

    - {% blocktrans count counter=queries|length %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=queries|length %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% endif %} @@ -15,7 +15,7 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=queries linkurl="wagtailsearchpromotions:index" %} {% else %} {% if is_searching %} -

    {% blocktrans %}Sorry, no promoted results match "{{ query_string }}"{% endblocktrans %}

    +

    {% blocktrans %}Sorry, no promoted results match "{{ query_string }}"{% endblocktrans %}

    {% else %} {% url 'wagtailsearchpromotions:add' as wagtailsearchpromotions_add_url %}

    {% blocktrans %}No promoted results have been created. Why not add one?{% endblocktrans %}

    diff --git a/wagtail/contrib/settings/templates/wagtailsettings/edit.html b/wagtail/contrib/settings/templates/wagtailsettings/edit.html index 7e67fb65cb..52a1a818c3 100644 --- a/wagtail/contrib/settings/templates/wagtailsettings/edit.html +++ b/wagtail/contrib/settings/templates/wagtailsettings/edit.html @@ -16,17 +16,17 @@
    {% if site_switcher %} -
    -
    - -
    - {{ site_switcher.site }} - -
    -
    -
    +
    +
    + +
    + {{ site_switcher.site }} + +
    +
    +
    {% endif %}
    diff --git a/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html b/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html index c36853878a..cc2ec17b67 100644 --- a/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html +++ b/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html @@ -71,7 +71,7 @@
    -

    Accessible colour combinations

    +

    Accessible colour combinations

    WCAG (Web Content Accessibility Guidelines) ensures that content is accessible by everyone, regardless of any disability or user device. To ensure text remains compliant with WCAG 2.0 AA standards, use only these permitted colour combinations.

    Use this Color Palette Accessibility Checker to test new colour combinations using the existing colour palette.

    @@ -753,7 +753,7 @@

     

    -
    +
    50%
    @@ -786,21 +786,21 @@

    SVG Icons

    - + @keyframes spin-wag { + from { + transform: translateY(0.6em) rotate(0deg); + } to { + transform: translateY(0.6em) rotate(360deg); + } + } +
    • {% icon 'wagtail-icon' %} wagtail
    • diff --git a/wagtail/contrib/table_block/templates/table_block/blocks/table.html b/wagtail/contrib/table_block/templates/table_block/blocks/table.html index 081a071952..05252ae7be 100644 --- a/wagtail/contrib/table_block/templates/table_block/blocks/table.html +++ b/wagtail/contrib/table_block/templates/table_block/blocks/table.html @@ -2,58 +2,58 @@ {% if table_caption %} - + {% endif %} {% if table_header %} - - {% for column in table_header %} - {% with forloop.counter0 as col_index %} - - {% endwith %} - {% endfor %} - + + {% for column in table_header %} + {% with forloop.counter0 as col_index %} + + {% endwith %} + {% endfor %} + {% endif %} - {% for row in data %} - {% with forloop.counter0 as row_index %} - - {% for column in row %} - {% with forloop.counter0 as col_index %} - {% if first_col_is_header and forloop.first %} - + {% for column in row %} + {% with forloop.counter0 as col_index %} + {% if first_col_is_header and forloop.first %} + {% else %} - {{ column.strip|linebreaksbr }} + {% endif %} - {% endif %} - - {% else %} - - {% endif %} + {% endwith %} + {% endfor %} + {% endwith %} - {% endfor %} - - {% endwith %} - {% endfor %} + {% endfor %}
      {{ table_caption }}{{ table_caption }}
      - {% if column.strip %} - {% if html_renderer %} - {{ column.strip|safe|linebreaksbr }} - {% else %} - {{ column.strip|linebreaksbr }} - {% endif %} - {% endif %} -
      + {% if column.strip %} + {% if html_renderer %} + {{ column.strip|safe|linebreaksbr }} + {% else %} + {{ column.strip|linebreaksbr }} + {% endif %} + {% endif %} +
      - {% if column.strip %} - {% if html_renderer %} - {{ column.strip|safe|linebreaksbr }} + {% for row in data %} + {% with forloop.counter0 as row_index %} +
      + {% if column.strip %} + {% if html_renderer %} + {{ column.strip|safe|linebreaksbr }} + {% else %} + {{ column.strip|linebreaksbr }} + {% endif %} + {% endif %} + + {% if column.strip %} + {% if html_renderer %} + {{ column.strip|safe|linebreaksbr }} + {% else %} + {{ column.strip|linebreaksbr }} + {% endif %} + {% endif %} + - {% if column.strip %} - {% if html_renderer %} - {{ column.strip|safe|linebreaksbr }} - {% else %} - {{ column.strip|linebreaksbr }} - {% endif %} - {% endif %} -
      diff --git a/wagtail/contrib/typed_table_block/templates/typed_table_block/typed_table_block.html b/wagtail/contrib/typed_table_block/templates/typed_table_block/typed_table_block.html index 52837555ad..66430f31b7 100644 --- a/wagtail/contrib/typed_table_block/templates/typed_table_block/typed_table_block.html +++ b/wagtail/contrib/typed_table_block/templates/typed_table_block/typed_table_block.html @@ -3,17 +3,17 @@ {% for col in value.columns %} - {{ col.heading }} + {{ col.heading }} {% endfor %} {% for row in value.rows %} - - {% for block in row %} - {% include_block block %} - {% endfor %} - + + {% for block in row %} + {% include_block block %} + {% endfor %} + {% endfor %} diff --git a/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_tags.html b/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_tags.html index 113698257c..7fae6c8654 100644 --- a/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_tags.html +++ b/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_tags.html @@ -22,27 +22,27 @@ {% block items_with_access %} {% if items %} -

      - {% blocktrans trimmed count counter=items|length %} - Are you sure you want to tag the following document? - {% plural %} - Are you sure you want to tag the following documents? - {% endblocktrans %} -

      - +

      + {% blocktrans trimmed count counter=items|length %} + Are you sure you want to tag the following document? + {% plural %} + Are you sure you want to tag the following documents? + {% endblocktrans %} +

      + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to add tags to this document{% plural %}You don't have permission to add tags to these documents{% endblocktrans %} -{% include 'wagtaildocs/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to add tags to this document{% plural %}You don't have permission to add tags to these documents{% endblocktrans %} + {% include 'wagtaildocs/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} diff --git a/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_to_collection.html b/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_to_collection.html index 30b51749fe..bfcfea6869 100644 --- a/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_to_collection.html +++ b/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_to_collection.html @@ -10,27 +10,27 @@ {% block items_with_access %} {% if items %} -

      - {% blocktrans trimmed count counter=items|length %} - Are you sure you want to add the following document to the selected collection? - {% plural %} - Are you sure you want to add the following documents to the selected collection? - {% endblocktrans %} -

      - +

      + {% blocktrans trimmed count counter=items|length %} + Are you sure you want to add the following document to the selected collection? + {% plural %} + Are you sure you want to add the following documents to the selected collection? + {% endblocktrans %} +

      + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to add this document to a collection{% plural %}You don't have permission to add these documents to a collection{% endblocktrans %} -{% include 'wagtaildocs/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to add this document to a collection{% plural %}You don't have permission to add these documents to a collection{% endblocktrans %} + {% include 'wagtaildocs/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} diff --git a/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_delete.html b/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_delete.html index 65ef2449d4..468834a16b 100644 --- a/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_delete.html +++ b/wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_delete.html @@ -9,31 +9,31 @@ {% block items_with_access %} {% if items %} -

      - {% blocktrans trimmed count counter=items|length %} - Are you sure you want to delete this document? - {% plural %} - Are you sure you want to delete these documents? - {% endblocktrans %} -

      - +

      + {% blocktrans trimmed count counter=items|length %} + Are you sure you want to delete this document? + {% plural %} + Are you sure you want to delete these documents? + {% endblocktrans %} +

      + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this document{% plural %}You don't have permission to delete these documents{% endblocktrans %} -{% include 'wagtaildocs/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this document{% plural %}You don't have permission to delete these documents{% endblocktrans %} + {% include 'wagtaildocs/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} diff --git a/wagtail/documents/templates/wagtaildocs/bulk_actions/list_items_with_no_access.html b/wagtail/documents/templates/wagtaildocs/bulk_actions/list_items_with_no_access.html index 003d3a85f6..86507e3ee4 100644 --- a/wagtail/documents/templates/wagtaildocs/bulk_actions/list_items_with_no_access.html +++ b/wagtail/documents/templates/wagtaildocs/bulk_actions/list_items_with_no_access.html @@ -3,8 +3,8 @@ {% block per_item %} {% if item.can_edit %} - {{ item.item.title }} + {{ item.item.title }} {% else %} - {{ item.item.title }} + {{ item.item.title }} {% endif %} {% endblock per_item %} diff --git a/wagtail/documents/templates/wagtaildocs/chooser/results.html b/wagtail/documents/templates/wagtaildocs/chooser/results.html index 49a0c3554b..445be82105 100644 --- a/wagtail/documents/templates/wagtaildocs/chooser/results.html +++ b/wagtail/documents/templates/wagtaildocs/chooser/results.html @@ -2,11 +2,11 @@ {% if documents %} {% if is_searching %}

      - {% blocktrans count counter=documents.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=documents.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

      {% else %}

      {% trans "Latest documents" %}

      @@ -19,17 +19,17 @@

      {% blocktrans %}Sorry, no documents match "{{ query_string }}"{% endblocktrans %}

      {% else %}

      - {% if collection_id %} - {% trans "You haven't uploaded any documents in this collection." %} - {% else %} - {% trans "You haven't uploaded any documents." %} - {% endif %} - {% if uploadform %} - {% url 'wagtaildocs:add_multiple' as wagtaildocs_add_document_url %} - {% blocktrans %} - Why not upload one now? - {% endblocktrans %} - {% endif %} + {% if collection_id %} + {% trans "You haven't uploaded any documents in this collection." %} + {% else %} + {% trans "You haven't uploaded any documents." %} + {% endif %} + {% if uploadform %} + {% url 'wagtaildocs:add_multiple' as wagtaildocs_add_document_url %} + {% blocktrans %} + Why not upload one now? + {% endblocktrans %} + {% endif %}

      {% endif %} {% endif %} diff --git a/wagtail/documents/templates/wagtaildocs/documents/confirm_delete.html b/wagtail/documents/templates/wagtaildocs/documents/confirm_delete.html index 8676aa79a9..a974fe81ce 100644 --- a/wagtail/documents/templates/wagtaildocs/documents/confirm_delete.html +++ b/wagtail/documents/templates/wagtaildocs/documents/confirm_delete.html @@ -17,9 +17,9 @@

      {# This message will only appear in the singular, but we specify a plural so it can share the translation string with confirm_bulk_delete.html #} {% blocktrans trimmed count counter=1 %} - Are you sure you want to delete this document? + Are you sure you want to delete this document? {% plural %} - Are you sure you want to delete these documents? + Are you sure you want to delete these documents? {% endblocktrans %}

      diff --git a/wagtail/documents/templates/wagtaildocs/documents/results.html b/wagtail/documents/templates/wagtaildocs/documents/results.html index ca75dbd21c..69d98c39d0 100644 --- a/wagtail/documents/templates/wagtaildocs/documents/results.html +++ b/wagtail/documents/templates/wagtaildocs/documents/results.html @@ -2,11 +2,11 @@ {% if documents %} {% if is_searching %}

      - {% blocktrans count counter=documents|length %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=documents|length %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

      {% search_other %} @@ -17,9 +17,9 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=documents %} {% else %} {% if is_searching %} -

      {% blocktrans %}Sorry, no documents match "{{ query_string }}"{% endblocktrans %}

      +

      {% blocktrans %}Sorry, no documents match "{{ query_string }}"{% endblocktrans %}

      - {% search_other %} + {% search_other %} {% else %} {% url 'wagtaildocs:add_multiple' as wagtaildocs_add_document_url %} {% if current_collection %} diff --git a/wagtail/documents/templates/wagtaildocs/homepage/site_summary_documents.html b/wagtail/documents/templates/wagtaildocs/homepage/site_summary_documents.html index 8d4d5ba327..361f721a52 100644 --- a/wagtail/documents/templates/wagtaildocs/homepage/site_summary_documents.html +++ b/wagtail/documents/templates/wagtaildocs/homepage/site_summary_documents.html @@ -3,10 +3,10 @@
    • {% icon name="doc-full-inverse" %} - {% blocktrans count counter=total_docs with total_docs|intcomma as total %} - {{ total }} Document created in {{ site_name }} - {% plural %} - {{ total }} Documents created in {{ site_name }} - {% endblocktrans %} + {% blocktrans count counter=total_docs with total_docs|intcomma as total %} + {{ total }} Document created in {{ site_name }} + {% plural %} + {{ total }} Documents created in {{ site_name }} + {% endblocktrans %}
    • diff --git a/wagtail/documents/templates/wagtaildocs/multiple/add.html b/wagtail/documents/templates/wagtaildocs/multiple/add.html index cb61926853..2f3996deb8 100644 --- a/wagtail/documents/templates/wagtaildocs/multiple/add.html +++ b/wagtail/documents/templates/wagtaildocs/multiple/add.html @@ -34,13 +34,13 @@ {% minimum_collection_depth collections as min_depth %} {% for collection in collections %} {% endfor %} diff --git a/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html b/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html index d4de9705ea..a975ba8f96 100644 --- a/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html +++ b/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html @@ -22,27 +22,27 @@ {% block items_with_access %} {% if items %} -

      - {% blocktrans trimmed count counter=items|length %} - Are you sure you want to tag the following image? - {% plural %} - Are you sure you want to tag the following images? - {% endblocktrans %} -

      - +

      + {% blocktrans trimmed count counter=items|length %} + Are you sure you want to tag the following image? + {% plural %} + Are you sure you want to tag the following images? + {% endblocktrans %} +

      + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to add tags to this image{% plural %}You don't have permission to add tags to these images{% endblocktrans %} -{% include 'wagtailimages/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to add tags to this image{% plural %}You don't have permission to add tags to these images{% endblocktrans %} + {% include 'wagtailimages/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} diff --git a/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html b/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html index 25b25b2d65..be4cd42690 100644 --- a/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html +++ b/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html @@ -9,28 +9,28 @@ {% endblock header %} {% block items_with_access %} -{% if items %} -

      - {% blocktrans trimmed count counter=items|length %} - Are you sure you want to add the following image to the selected collection? - {% plural %} - Are you sure you want to add the following images to the selected collection? - {% endblocktrans %} -

      - -{% endif %} + {% if items %} +

      + {% blocktrans trimmed count counter=items|length %} + Are you sure you want to add the following image to the selected collection? + {% plural %} + Are you sure you want to add the following images to the selected collection? + {% endblocktrans %} +

      + + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to add this image to a collection{% plural %}You don't have permission to add these images to a collection{% endblocktrans %} -{% include 'wagtailimages/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to add this image to a collection{% plural %}You don't have permission to add these images to a collection{% endblocktrans %} + {% include 'wagtailimages/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} diff --git a/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_delete.html b/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_delete.html index ad10f8c9bd..b8ffc2df62 100644 --- a/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_delete.html +++ b/wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_delete.html @@ -8,32 +8,32 @@ {% endblock header %} {% block items_with_access %} -{% if items %} -

      - {% blocktrans trimmed count counter=items|length %} - Are you sure you want to delete this image? - {% plural %} - Are you sure you want to delete these images? - {% endblocktrans %} -

      - -{% endif %} + {% if items %} +

      + {% blocktrans trimmed count counter=items|length %} + Are you sure you want to delete this image? + {% plural %} + Are you sure you want to delete these images? + {% endblocktrans %} +

      + + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this image{% plural %}You don't have permission to delete these images{% endblocktrans %} -{% include 'wagtailimages/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this image{% plural %}You don't have permission to delete these images{% endblocktrans %} + {% include 'wagtailimages/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} diff --git a/wagtail/images/templates/wagtailimages/bulk_actions/list_items_with_no_access.html b/wagtail/images/templates/wagtailimages/bulk_actions/list_items_with_no_access.html index 27577e9d86..1da47f46a0 100644 --- a/wagtail/images/templates/wagtailimages/bulk_actions/list_items_with_no_access.html +++ b/wagtail/images/templates/wagtailimages/bulk_actions/list_items_with_no_access.html @@ -2,9 +2,9 @@ {% load i18n %} {% block per_item %} -{% if item.can_edit %} - {{ item.item.title }} -{% else %} - {{ item.item.title }} -{% endif %} + {% if item.can_edit %} + {{ item.item.title }} + {% else %} + {{ item.item.title }} + {% endif %} {% endblock per_item %} diff --git a/wagtail/images/templates/wagtailimages/chooser/results.html b/wagtail/images/templates/wagtailimages/chooser/results.html index f44e80acb8..94cb50f906 100644 --- a/wagtail/images/templates/wagtailimages/chooser/results.html +++ b/wagtail/images/templates/wagtailimages/chooser/results.html @@ -3,11 +3,11 @@ {% if images %} {% if is_searching %}

      - {% blocktrans count counter=images.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=images.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

      {% else %}

      {% trans "Latest images" %}

      diff --git a/wagtail/images/templates/wagtailimages/homepage/site_summary_images.html b/wagtail/images/templates/wagtailimages/homepage/site_summary_images.html index c68ddb44c1..92c92bf55e 100644 --- a/wagtail/images/templates/wagtailimages/homepage/site_summary_images.html +++ b/wagtail/images/templates/wagtailimages/homepage/site_summary_images.html @@ -3,10 +3,10 @@
    • {% icon name="image" %} - {% blocktrans count counter=total_images with total_images|intcomma as total %} - {{ total }} Image created in {{ site_name }} - {% plural %} - {{ total }} Images created in {{ site_name }} - {% endblocktrans %} + {% blocktrans count counter=total_images with total_images|intcomma as total %} + {{ total }} Image created in {{ site_name }} + {% plural %} + {{ total }} Images created in {{ site_name }} + {% endblocktrans %}
    • diff --git a/wagtail/images/templates/wagtailimages/images/_file_field.html b/wagtail/images/templates/wagtailimages/images/_file_field.html index 4f1d62903e..091330d165 100644 --- a/wagtail/images/templates/wagtailimages/images/_file_field.html +++ b/wagtail/images/templates/wagtailimages/images/_file_field.html @@ -1,7 +1,7 @@ {% extends "wagtailadmin/shared/field.html" %} {% load i18n wagtailimages_tags %} {% block form_field %} - {% image image original as original_image %} + {% image image original as original_image %} {{ image.filename }} ({{ original_image.width }}x{{ original_image.height}})

      diff --git a/wagtail/images/templates/wagtailimages/images/index.html b/wagtail/images/templates/wagtailimages/images/index.html index 34f88ad3e0..86af37fadd 100644 --- a/wagtail/images/templates/wagtailimages/images/index.html +++ b/wagtail/images/templates/wagtailimages/images/index.html @@ -46,21 +46,21 @@ {% endif %} {% endif %} {% if popular_tags %} -
    • -
      - {% trans 'Popular Tags:' %} - {% for tag in popular_tags %} - {% if tag.name != current_tag %} - {% icon name="tag" wrapped=1 %}{{ tag.name }} - {% else %} - {% icon name="tag" wrapped=1 %}{{ tag.name }} - {% endif %} - {% endfor %} - {% if current_tag %} - {% icon name="cross" wrapped=1 %}{% trans 'Clear choice' %} - {% endif %} -
      -
    • +
    • +
      + {% trans 'Popular Tags:' %} + {% for tag in popular_tags %} + {% if tag.name != current_tag %} + {% icon name="tag" wrapped=1 %}{{ tag.name }} + {% else %} + {% icon name="tag" wrapped=1 %}{{ tag.name }} + {% endif %} + {% endfor %} + {% if current_tag %} + {% icon name="cross" wrapped=1 %}{% trans 'Clear choice' %} + {% endif %} +
      +
    • {% endif %}
    diff --git a/wagtail/images/templates/wagtailimages/images/results.html b/wagtail/images/templates/wagtailimages/images/results.html index 570843c189..26e87a8c51 100644 --- a/wagtail/images/templates/wagtailimages/images/results.html +++ b/wagtail/images/templates/wagtailimages/images/results.html @@ -3,11 +3,11 @@ {% if images %} {% if is_searching %}

    - {% blocktrans count counter=images.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=images.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% search_other %} diff --git a/wagtail/images/templates/wagtailimages/multiple/add.html b/wagtail/images/templates/wagtailimages/multiple/add.html index 60e0565bc0..96b06331cd 100644 --- a/wagtail/images/templates/wagtailimages/multiple/add.html +++ b/wagtail/images/templates/wagtailimages/multiple/add.html @@ -34,13 +34,13 @@ {% minimum_collection_depth collections as min_depth %} {% for collection in collections %} {% endfor %} diff --git a/wagtail/project_template/home/templates/home/welcome_page.html b/wagtail/project_template/home/templates/home/welcome_page.html index af0a372a6f..1ff62aa779 100644 --- a/wagtail/project_template/home/templates/home/welcome_page.html +++ b/wagtail/project_template/home/templates/home/welcome_page.html @@ -1,52 +1,52 @@ {% templatetag openblock %} load i18n wagtailcore_tags {% templatetag closeblock %}
    - - + +
    -
    - -
    -
    -

    {% templatetag openblock %} trans "Welcome to your new Wagtail site!" {% templatetag closeblock %}

    -

    {% templatetag openblock %} trans 'Please feel free to join our community on Slack, or get started with one of the links below.' {% templatetag closeblock %}

    -
    +
    + +
    +
    +

    {% templatetag openblock %} trans "Welcome to your new Wagtail site!" {% templatetag closeblock %}

    +

    {% templatetag openblock %} trans 'Please feel free to join our community on Slack, or get started with one of the links below.' {% templatetag closeblock %}

    +
    diff --git a/wagtail/project_template/project_name/templates/404.html b/wagtail/project_template/project_name/templates/404.html index 7b25299571..10df86ff39 100644 --- a/wagtail/project_template/project_name/templates/404.html +++ b/wagtail/project_template/project_name/templates/404.html @@ -5,7 +5,7 @@ {% templatetag openblock %} block body_class {% templatetag closeblock %}template-404{% templatetag openblock %} endblock {% templatetag closeblock %} {% templatetag openblock %} block content {% templatetag closeblock %} -

    Page not found

    +

    Page not found

    -

    Sorry, this page could not be found.

    +

    Sorry, this page could not be found.

    {% templatetag openblock %} endblock {% templatetag closeblock %} diff --git a/wagtail/project_template/project_name/templates/base.html b/wagtail/project_template/project_name/templates/base.html index 7777ba55d0..ecf45473cf 100644 --- a/wagtail/project_template/project_name/templates/base.html +++ b/wagtail/project_template/project_name/templates/base.html @@ -6,11 +6,11 @@ {% templatetag openblock %} block title %} - {% templatetag openblock %} if page.seo_title %}{% templatetag openvariable %} page.seo_title {% templatetag closevariable %}{% templatetag openblock %} else %}{% templatetag openvariable %} page.title {% templatetag closevariable %}{% templatetag openblock %} endif %} + {% templatetag openblock %} if page.seo_title %}{% templatetag openvariable %} page.seo_title {% templatetag closevariable %}{% templatetag openblock %} else %}{% templatetag openvariable %} page.title {% templatetag closevariable %}{% templatetag openblock %} endif %} {% templatetag openblock %} endblock %} {% templatetag openblock %} block title_suffix %} - {% templatetag openblock %} wagtail_site as current_site %} - {% templatetag openblock %} if current_site and current_site.site_name %}- {% templatetag openvariable %} current_site.site_name {% templatetag closevariable %}{% templatetag openblock %} endif %} + {% templatetag openblock %} wagtail_site as current_site %} + {% templatetag openblock %} if current_site and current_site.site_name %}- {% templatetag openvariable %} current_site.site_name {% templatetag closevariable %}{% templatetag openblock %} endif %} {% templatetag openblock %} endblock %} @@ -20,7 +20,7 @@ {% templatetag openblock %} block extra_css {% templatetag closeblock %} - {% templatetag opencomment %} Override this in templates to add extra stylesheets {% templatetag closecomment %} + {% templatetag opencomment %} Override this in templates to add extra stylesheets {% templatetag closecomment %} {% templatetag openblock %} endblock {% templatetag closeblock %} @@ -33,7 +33,7 @@ {% templatetag openblock %} block extra_js {% templatetag closeblock %} - {% templatetag opencomment %} Override this in templates to add extra javascript {% templatetag closecomment %} + {% templatetag opencomment %} Override this in templates to add extra javascript {% templatetag closecomment %} {% templatetag openblock %} endblock {% templatetag closeblock %} diff --git a/wagtail/project_template/search/templates/search/search.html b/wagtail/project_template/search/templates/search/search.html index 3a94ac673e..ce43d5326f 100644 --- a/wagtail/project_template/search/templates/search/search.html +++ b/wagtail/project_template/search/templates/search/search.html @@ -6,33 +6,33 @@ {% templatetag openblock %} block title {% templatetag closeblock %}Search{% templatetag openblock %} endblock {% templatetag closeblock %} {% templatetag openblock %} block content {% templatetag closeblock %} -

    Search

    +

    Search

    -
    - - -
    +
    + + +
    - {% templatetag openblock %} if search_results {% templatetag closeblock %} -
      - {% templatetag openblock %} for result in search_results {% templatetag closeblock %} -
    • -

      {% templatetag openvariable %} result {% templatetag closevariable %}

      - {% templatetag openblock %} if result.search_description {% templatetag closeblock %} - {% templatetag openvariable %} result.search_description {% templatetag closevariable %} - {% templatetag openblock %} endif {% templatetag closeblock %} -
    • - {% templatetag openblock %} endfor {% templatetag closeblock %} -
    - - {% templatetag openblock %} if search_results.has_previous {% templatetag closeblock %} - Previous +{% templatetag openblock %} if search_results {% templatetag closeblock %} +
      + {% templatetag openblock %} for result in search_results {% templatetag closeblock %} +
    • +

      {% templatetag openvariable %} result {% templatetag closevariable %}

      + {% templatetag openblock %} if result.search_description {% templatetag closeblock %} + {% templatetag openvariable %} result.search_description {% templatetag closevariable %} {% templatetag openblock %} endif {% templatetag closeblock %} +
    • + {% templatetag openblock %} endfor {% templatetag closeblock %} +
    - {% templatetag openblock %} if search_results.has_next {% templatetag closeblock %} - Next - {% templatetag openblock %} endif {% templatetag closeblock %} - {% templatetag openblock %} elif search_query {% templatetag closeblock %} - No results found - {% templatetag openblock %} endif {% templatetag closeblock %} +{% templatetag openblock %} if search_results.has_previous {% templatetag closeblock %} +Previous +{% templatetag openblock %} endif {% templatetag closeblock %} + +{% templatetag openblock %} if search_results.has_next {% templatetag closeblock %} +Next +{% templatetag openblock %} endif {% templatetag closeblock %} +{% templatetag openblock %} elif search_query {% templatetag closeblock %} +No results found +{% templatetag openblock %} endif {% templatetag closeblock %} {% templatetag openblock %} endblock {% templatetag closeblock %} diff --git a/wagtail/search/templates/wagtailsearch/queries/chooser_field.html b/wagtail/search/templates/wagtailsearch/queries/chooser_field.html index f6e9f39462..c8e317694d 100644 --- a/wagtail/search/templates/wagtailsearch/queries/chooser_field.html +++ b/wagtail/search/templates/wagtailsearch/queries/chooser_field.html @@ -2,9 +2,9 @@ {% load i18n %} {% trans "Date" %} {% block form_field %} -
    - {{ field }} +
    + {{ field }} - +
    {% endblock %} diff --git a/wagtail/search/templates/wagtailsearch/search_results.html b/wagtail/search/templates/wagtailsearch/search_results.html index e9a11550c9..d633c59345 100644 --- a/wagtail/search/templates/wagtailsearch/search_results.html +++ b/wagtail/search/templates/wagtailsearch/search_results.html @@ -1,22 +1,22 @@ - - Search{% if search_results %} Results{% endif %} - - -

    Search{% if search_results %} Results{% endif %}

    + + Search{% if search_results %} Results{% endif %} + + +

    Search{% if search_results %} Results{% endif %}

    -
    - - -
    +
    + + +
    - {% if search_results %} - - {% endif %} - - \ No newline at end of file + {% if search_results %} + + {% endif %} + + diff --git a/wagtail/snippets/templates/wagtailsnippets/chooser/results.html b/wagtail/snippets/templates/wagtailsnippets/chooser/results.html index 1e1afdb26d..7824f4fec6 100644 --- a/wagtail/snippets/templates/wagtailsnippets/chooser/results.html +++ b/wagtail/snippets/templates/wagtailsnippets/chooser/results.html @@ -2,11 +2,11 @@ {% if items %} {% if is_searching %}

    - {% blocktrans count counter=items.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=items.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% endif %} @@ -16,7 +16,7 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=items linkurl=pagination_base_url %} {% else %} {% if is_searching %} -

    {% blocktrans %}Sorry, no snippets match "{{ query_string }}"{% endblocktrans %}

    +

    {% blocktrans %}Sorry, no snippets match "{{ query_string }}"{% endblocktrans %}

    {% else %} {% url 'wagtailsnippets:add' model_opts.app_label model_opts.model_name as wagtailsnippets_create_snippet_url %}

    {% blocktrans with snippet_type_name=model_opts.verbose_name %}You haven't created any {{ snippet_type_name }} snippets. Why not create one now?{% endblocktrans %}

    diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/_header_with_history.html b/wagtail/snippets/templates/wagtailsnippets/snippets/_header_with_history.html index bfb50700e4..f0fc7e885c 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/_header_with_history.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/_header_with_history.html @@ -5,18 +5,18 @@ {% url 'wagtailsnippets:history' model_opts.app_label model_opts.model_name instance.pk|admin_urlquote as history_url %} {% if latest_log_entry %} -
    -
      -
    • - - {% trans "Last updated" %} - {% include "wagtailadmin/shared/last_updated.html" with last_updated=latest_log_entry.timestamp time_prefix="at" %} -
    • - {% if history_url %} -
    • {% icon "history" class_name="default" %} {% trans "History" %}
    • - {% endif %} -
    • {% icon "snippet" class_name="default" %} {{ model_opts.verbose_name|capfirst }}
    • -
    -
    +
    +
      +
    • + + {% trans "Last updated" %} + {% include "wagtailadmin/shared/last_updated.html" with last_updated=latest_log_entry.timestamp time_prefix="at" %} +
    • + {% if history_url %} +
    • {% icon "history" class_name="default" %} {% trans "History" %}
    • + {% endif %} +
    • {% icon "snippet" class_name="default" %} {{ model_opts.verbose_name|capfirst }}
    • +
    +
    {% endif %} {% endblock %} diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html b/wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html index 2d9fd820c1..7d07200a63 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html @@ -7,7 +7,7 @@
      {% for item in rendered_menu_items %}
    • - {{ item }} + {{ item }}
    • {% endfor %}
    diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html b/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html index e7f4455606..ea35b43cf4 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html @@ -2,9 +2,9 @@ {% load wagtailadmin_tags i18n %} {% block titletag %} {% if count == 1 %} - {% blocktrans with snippet_type_name=model_opts.verbose_name %}Delete {{ snippet_type_name }}{% endblocktrans %} - {{ instances|first }} + {% blocktrans with snippet_type_name=model_opts.verbose_name %}Delete {{ snippet_type_name }}{% endblocktrans %} - {{ instances|first }} {% else %} - {{ count }} {{ model_opts.verbose_name_plural|capfirst }} + {{ count }} {{ model_opts.verbose_name_plural|capfirst }} {% endif %} {% endblock %} {% block content %} @@ -28,7 +28,7 @@

    {% blocktrans with snippet_type_name=model_opts.verbose_name_plural %}Are you sure you want to delete {{ count }} {{ snippet_type_name }}?{% endblocktrans %}

      {% for instance in instances %} -
    • {{ instance }}
    • +
    • {{ instance }}
    • {% endfor %}
    {% endif %} diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html b/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html index 9e3d7bc0d0..53f57d2799 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html @@ -27,14 +27,14 @@
    {% if uc_enabled %} - {% endif %} diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/results.html b/wagtail/snippets/templates/wagtailsnippets/snippets/results.html index bf1bb982d7..7673967aad 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/results.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/results.html @@ -2,11 +2,11 @@ {% if items %} {% if is_searching %}

    - {% blocktrans count counter=items.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=items.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% endif %} @@ -16,7 +16,7 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=items linkurl=wagtailsnippets_list_url %} {% else %} {% if is_searching %} -

    {% blocktrans %}Sorry, no snippets match "{{ query_string }}"{% endblocktrans %}

    +

    {% blocktrans %}Sorry, no snippets match "{{ query_string }}"{% endblocktrans %}

    {% else %} {% url 'wagtailsnippets:add' model_opts.app_label model_opts.model_name as wagtailsnippets_create_url %} diff --git a/wagtail/tests/testapp/templates/tests/event_page.html b/wagtail/tests/testapp/templates/tests/event_page.html index 953c90273d..013ee6d852 100644 --- a/wagtail/tests/testapp/templates/tests/event_page.html +++ b/wagtail/tests/testapp/templates/tests/event_page.html @@ -3,21 +3,21 @@ {% block html_title %}Event: {{ self.title }}{% endblock %} {% block content %} -

    Event

    - {% if self.feed_image %} - {% image self.feed_image width-200 class="feed-image" %} - {% endif %} - - {% with self.categories.all as categories %} - {% if categories %} -
      - {% for category in categories %} -
    • {{ category.name }}
    • - {% endfor %} -
    +

    Event

    + {% if self.feed_image %} + {% image self.feed_image width-200 class="feed-image" %} {% endif %} - {% endwith %} - {{ self.body|richtext }} -

    Back to events index

    + {% with self.categories.all as categories %} + {% if categories %} +
      + {% for category in categories %} +
    • {{ category.name }}
    • + {% endfor %} +
    + {% endif %} + {% endwith %} + + {{ self.body|richtext }} +

    Back to events index

    {% endblock %} diff --git a/wagtail/tests/testapp/templates/tests/form_page_landing.html b/wagtail/tests/testapp/templates/tests/form_page_landing.html index 420f2f8c1b..6407b8ba63 100644 --- a/wagtail/tests/testapp/templates/tests/form_page_landing.html +++ b/wagtail/tests/testapp/templates/tests/form_page_landing.html @@ -5,8 +5,8 @@

    Thank you for your feedback.

      - {% for key, value in form_submission.get_data.items %} -
    • {{ key }}: {{ value }}
    • - {% endfor %} + {% for key, value in form_submission.get_data.items %} +
    • {{ key }}: {{ value }}
    • + {% endfor %}
    {% endblock %} diff --git a/wagtail/tests/testapp/templates/tests/form_page_with_custom_form_builder_landing.html b/wagtail/tests/testapp/templates/tests/form_page_with_custom_form_builder_landing.html index dff020a3b9..816fc42773 100644 --- a/wagtail/tests/testapp/templates/tests/form_page_with_custom_form_builder_landing.html +++ b/wagtail/tests/testapp/templates/tests/form_page_with_custom_form_builder_landing.html @@ -3,8 +3,8 @@ {% block content %}

    Thank you for submitting a Support Request.

      - {% for key, value in form_submission.get_data.items %} -
    • {{ key }}: {{ value }}
    • - {% endfor %} + {% for key, value in form_submission.get_data.items %} +
    • {{ key }}: {{ value }}
    • + {% endfor %}
    {% endblock %} diff --git a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html index d12fe64e71..42c0c3a216 100644 --- a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html +++ b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html @@ -9,31 +9,31 @@ {% endblock header %} {% block items_with_access %} - {% if items %} + {% if items %}

    {% trans "Are you sure you want to assign this role to these users?" %}

    - {% endif %} + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to edit this user{% plural %}You don't have permission to edit these users{% endblocktrans %} -{% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to edit this user{% plural %}You don't have permission to edit these users{% endblocktrans %} + {% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} {% block form_section %} -{% if items %} - {% trans 'Yes, assign' as action_button_text %} - {% trans "No, don't assign" as no_action_button_text %} - {% include 'wagtailadmin/bulk_actions/confirmation/form_with_fields.html' %} -{% else %} - {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} -{% endif %} + {% if items %} + {% trans 'Yes, assign' as action_button_text %} + {% trans "No, don't assign" as no_action_button_text %} + {% include 'wagtailadmin/bulk_actions/confirmation/form_with_fields.html' %} + {% else %} + {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} + {% endif %} {% endblock form_section %} diff --git a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html index 3f37bed8f6..738132f55e 100644 --- a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html +++ b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html @@ -9,31 +9,31 @@ {% endblock header %} {% block items_with_access %} - {% if items %} + {% if items %}

    {% trans "Are you sure you want to delete these users?" %}

    - {% endif %} + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this user{% plural %}You don't have permission to delete these users{% endblocktrans %} -{% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this user{% plural %}You don't have permission to delete these users{% endblocktrans %} + {% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} {% block form_section %} -{% if items %} - {% trans 'Yes, delete' as action_button_text %} - {% trans "No, don't delete" as no_action_button_text %} - {% include 'wagtailadmin/bulk_actions/confirmation/form.html' with action_button_class="serious" %} -{% else %} - {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} -{% endif %} + {% if items %} + {% trans 'Yes, delete' as action_button_text %} + {% trans "No, don't delete" as no_action_button_text %} + {% include 'wagtailadmin/bulk_actions/confirmation/form.html' with action_button_class="serious" %} + {% else %} + {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} + {% endif %} {% endblock form_section %} diff --git a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html index fa3cbdd163..6b0a9cd5b5 100644 --- a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html +++ b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html @@ -9,34 +9,34 @@ {% endblock header %} {% block items_with_access %} -{% if items %} -

    {% trans "Are you sure you want to change the active state for these users?" %}

    - -{% endif %} + {% if items %} +

    {% trans "Are you sure you want to change the active state for these users?" %}

    + + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to edit this user{% plural %}You don't have permission to edit these users{% endblocktrans %} -{% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to edit this user{% plural %}You don't have permission to edit these users{% endblocktrans %} + {% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} -{% trans "You cannot change your own active status" as no_access_msg %} -{% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=mark_self_as_inactive no_access_msg=no_access_msg %} + {% trans "You cannot change your own active status" as no_access_msg %} + {% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=mark_self_as_inactive no_access_msg=no_access_msg %} {% endblock items_with_no_access %} {% block form_section %} -{% if items %} - {% trans 'Yes, change state' as action_button_text %} - {% trans "No, don't change state" as no_action_button_text %} - {% include 'wagtailadmin/bulk_actions/confirmation/form_with_fields.html' %} -{% else %} - {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} -{% endif %} + {% if items %} + {% trans 'Yes, change state' as action_button_text %} + {% trans "No, don't change state" as no_action_button_text %} + {% include 'wagtailadmin/bulk_actions/confirmation/form_with_fields.html' %} + {% else %} + {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} + {% endif %} {% endblock form_section %} diff --git a/wagtail/users/templates/wagtailusers/bulk_actions/list_items_with_no_access.html b/wagtail/users/templates/wagtailusers/bulk_actions/list_items_with_no_access.html index 4d13708698..c4393ecc23 100644 --- a/wagtail/users/templates/wagtailusers/bulk_actions/list_items_with_no_access.html +++ b/wagtail/users/templates/wagtailusers/bulk_actions/list_items_with_no_access.html @@ -2,5 +2,5 @@ {% load i18n wagtailadmin_tags %} {% block per_item %} -{{ item|user_display_name }} + {{ item|user_display_name }} {% endblock per_item %} diff --git a/wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html b/wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html index 9600934367..d6c6b89dd6 100644 --- a/wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html +++ b/wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html @@ -9,7 +9,7 @@ {% if custom_perms_exist %} - + {% endif %} @@ -18,48 +18,48 @@ {% trans "Change" %} {% trans "Delete" %} {% if custom_perms_exist %} - {% trans "Custom permissions" %} + {% trans "Custom permissions" %} {% endif %} {% for content_perms_dict in object_perms %} - -

    {{ content_perms_dict.object|capfirst }}

    - - {% if content_perms_dict.add %} - - {{ content_perms_dict.add.checkbox.tag }} + +

    {{ content_perms_dict.object|capfirst }}

    + + {% if content_perms_dict.add %} + + {{ content_perms_dict.add.checkbox.tag }} + {% endif %} + + + {% if content_perms_dict.change %} + + {{ content_perms_dict.change.checkbox.tag }} + {% endif %} + + + {% if content_perms_dict.delete %} + + {{ content_perms_dict.delete.checkbox.tag }} + {% endif %} + + {% if custom_perms_exist %} + + {% if content_perms_dict.custom %} +
    + {% trans "Custom permissions" %} + {% for custom_perm in content_perms_dict.custom %} + + {% endfor %} +
    + {% endif %} + {% endif %} - - - {% if content_perms_dict.change %} - - {{ content_perms_dict.change.checkbox.tag }} - {% endif %} - - - {% if content_perms_dict.delete %} - - {{ content_perms_dict.delete.checkbox.tag }} - {% endif %} - - {% if custom_perms_exist %} - - {% if content_perms_dict.custom %} -
    - {% trans "Custom permissions" %} - {% for custom_perm in content_perms_dict.custom %} - - {% endfor %} -
    - {% endif %} - - {% endif %} - + {% endfor %} diff --git a/wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html b/wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html index 778432b623..77a5388f42 100644 --- a/wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html +++ b/wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html @@ -43,11 +43,11 @@

    diff --git a/wagtail/users/templates/wagtailusers/users/index.html b/wagtail/users/templates/wagtailusers/users/index.html index d964ffb4a7..4bba764fa5 100644 --- a/wagtail/users/templates/wagtailusers/users/index.html +++ b/wagtail/users/templates/wagtailusers/users/index.html @@ -6,9 +6,9 @@