From 4fb6d583db00bac5baf7d722d81e2017d067c37c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 20 Oct 2021 17:27:23 +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 open a News item 3. Notice a Save and continue button 4. Make some changes and use the Save and continue button, making sure it works. 5. Make sure it works using both the text (CodeMirror) editor and wysiwyg (TinyMCE) editor 6. Flip the 'AdditionalContentsEditor' system preference and repeat steps 4 & 5. 7. Turn on the NewsLog system preference 8. Make some changes and make sure those changes get logged when you use the Save and continue button Signed-off-by: Barbara Johnson Signed-off-by: Katrin Fischer --- .../prog/en/modules/tools/additional-contents.tt | 18 +++++++++++++++++- tools/additional-contents.pl | 13 +++++++++++-- 2 files changed, 28 insertions(+), 3 deletions(-) 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 8f43afc707..f94878c1ee 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 @@ -165,18 +165,26 @@
+ +
[% IF category == 'news' %] Cancel [% ELSE %] Cancel [% END %] -
+
+ +
  1. @@ -439,9 +447,17 @@ [% INCLUDE 'calendar.inc' %] [% Asset.js("js/tools-menu.js") | $raw %] [% Asset.js("lib/hc-sticky.js") | $raw %] + [% IF additional_contents.count %] [% INCLUDE 'datatables.inc' %]