From 878a5beecaea7d2c5d326f811407deebb0a9759f Mon Sep 17 00:00:00 2001 From: Arthur Holzner Date: Mon, 2 Apr 2018 16:26:41 +0200 Subject: [PATCH] Add `extra_footer_actions` template blocks --- CHANGELOG.txt | 1 + docs/releases/2.1.rst | 1 + wagtail/admin/templates/wagtailadmin/pages/create.html | 2 ++ wagtail/admin/templates/wagtailadmin/pages/edit.html | 2 ++ 4 files changed, 6 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5a37b946cc..5ee0b99f8a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -25,6 +25,7 @@ Changelog * Set `ALLOWED_HOSTS` in the project template to allow any host in development (Tom Dyson) * Expose reusable client-side code to build Draftail extensions (Thibaud Colas) * Added `WAGTAILFRONTENDCACHE_LANGUAGES` setting to specify the languages whose URLs are to be purged when using `i18n_patterns` (PyMan Claudio Marinozzi) + * Added `extra_footer_actions` template blocks for customising the add/edit page views (Arthur Holzner) * Fix: Status button on 'edit page' now links to the correct URL when live and draft slug differ (LB (Ben Johnston)) * Fix: Image title text in the gallery and in the chooser now wraps for long filenames (LB (Ben Johnston), Luiz Boaretto) * Fix: Move image editor action buttons to the bottom of the form on mobile (Julian Gallo) diff --git a/docs/releases/2.1.rst b/docs/releases/2.1.rst index fd746357b4..28389dcdcb 100644 --- a/docs/releases/2.1.rst +++ b/docs/releases/2.1.rst @@ -44,6 +44,7 @@ Other features * Set `ALLOWED_HOSTS` in the project template to allow any host in development (Tom Dyson) * Expose reusable client-side code to build Draftail extensions (Thibaud Colas) * Added ``WAGTAILFRONTENDCACHE_LANGUAGES`` setting to specify the languages whose URLs are to be purged when using ``i18n_patterns`` (PyMan Claudio Marinozzi) + * Added ``extra_footer_actions`` template blocks for customising the add/edit page views (Arthur Holzner) Bug fixes ~~~~~~~~~ diff --git a/wagtail/admin/templates/wagtailadmin/pages/create.html b/wagtail/admin/templates/wagtailadmin/pages/create.html index a0367b0df6..f63e75656b 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/create.html +++ b/wagtail/admin/templates/wagtailadmin/pages/create.html @@ -59,6 +59,8 @@ {% include "wagtailadmin/pages/_preview_button_on_create.html" with label=preview_label icon=1 %} {% endif %} + {% block extra_footer_actions %} + {% endblock %} diff --git a/wagtail/admin/templates/wagtailadmin/pages/edit.html b/wagtail/admin/templates/wagtailadmin/pages/edit.html index 7c410df977..ea3c713c4d 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/edit.html +++ b/wagtail/admin/templates/wagtailadmin/pages/edit.html @@ -95,6 +95,8 @@ {% endif %}

+ {% block extra_footer_actions %} + {% endblock %}