From e9a53b4c93a445019b22bf2adb0c45c580029a01 Mon Sep 17 00:00:00 2001 From: Tom Hendrikx Date: Wed, 22 Mar 2017 16:00:55 +0100 Subject: [PATCH] Fix all other templates that use an .id directly. At least, all instances that my grep foo could find --- .../templates/table_block/widgets/table.html | 11 ++++++----- .../templates/wagtailadmin/pages/edit.html | 3 ++- .../templates/wagtailadmin/pages/listing/_list.html | 3 ++- .../pages/listing/_page_title_choose.html | 4 +++- .../wagtailadmin/shared/collection_chooser.html | 3 ++- .../templates/wagtailadmin/widgets/chooser.html | 3 ++- .../templates/wagtaildocs/multiple/add.html | 6 ++++-- .../templates/wagtailimages/multiple/add.html | 7 +++++-- .../wagtailsearch/queries/chooser/results.html | 6 ++++-- 9 files changed, 30 insertions(+), 16 deletions(-) diff --git a/wagtail/contrib/table_block/templates/table_block/widgets/table.html b/wagtail/contrib/table_block/templates/table_block/widgets/table.html index 96b59905e9..3d3c6007e9 100644 --- a/wagtail/contrib/table_block/templates/table_block/widgets/table.html +++ b/wagtail/contrib/table_block/templates/table_block/widgets/table.html @@ -1,23 +1,24 @@ {% load i18n %} +{% load l10n %}
- +
- +

{% trans 'Display the first row as a header.' %}


- +
- +

{% trans 'Display the first column as a header.' %}


-
+
{{ original_field_html }} diff --git a/wagtail/wagtailadmin/templates/wagtailadmin/pages/edit.html b/wagtail/wagtailadmin/templates/wagtailadmin/pages/edit.html index 384364b8c8..a770821061 100644 --- a/wagtail/wagtailadmin/templates/wagtailadmin/pages/edit.html +++ b/wagtail/wagtailadmin/templates/wagtailadmin/pages/edit.html @@ -2,6 +2,7 @@ {% load wagtailadmin_tags %} {% load gravatar %} {% load i18n %} +{% load l10n %} {% block titletag %}{% blocktrans with title=page.get_admin_display_title page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }}: {{ title }}{% endblocktrans %}{% endblock %} {% block bodyclass %}page-editor {% if page.live %}page-is-live{% endif %} model-{{ content_type.model }} {% if page.locked %}page-locked{% endif %}{% endblock %} @@ -32,7 +33,7 @@ {{ edit_handler.render_form_content }} {% if is_revision %} - + {% endif %}