From b887c6059313509a1c3c035e094373cbf9045d56 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 3 Feb 2022 22:31:19 +0000 Subject: [PATCH] Bug 22659: Add save and continue button to additional-contents.tt To test: 1. Apply patch and restart everything 2. Go to Tools > News and create some new additional content. 3. Notice a Save and continue button 4. Try saving and contining. 5. Make sure if you are using the CodeMirror editor that you are still in the CodeMirror editor 6. Try 2 - 5 again but with the wysiwyg editor, make sure when you save and continue you remain in the wysiwyg editor. 7. If you are saving and contining from News make sure you remain in News, when you are saving and contining from HTML customizations make sure you remain there. 8. Turn on the NewsLog system preference 9. With the NewsLog on make sure your content is being logged correctly when you sabe and continue. Signed-off-by: Sally --- .../prog/en/modules/tools/additional-contents.tt | 15 +++++++++++++++ tools/additional-contents.pl | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index 0337278569..ef47d3bec8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -166,6 +166,12 @@
+ +
[% IF category == 'news' %] Cancel @@ -178,6 +184,8 @@ + +
  1. @@ -438,6 +446,13 @@ [% INCLUDE 'calendar.inc' %] [% Asset.js("js/tools-menu.js") | $raw %] [% Asset.js("lib/hc-sticky.js") | $raw %] + [% IF additional_contents.count %] [% INCLUDE 'datatables.inc' %]