From 675dc7fc43e01af0fc6054b7691cfe3044fab1b3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 8 Feb 2023 17:46:48 +0000 Subject: [PATCH] Bug 32956: Use template wrapper for HTML customizations tabs This patch updates the HTML customizations template to replace tab markup with the use of WRAPPERs. - Apply the patch and go to Tools -> HTML customizations. - Create or edit an entry. - You should see tabs for each available language, for example Default, English, French. - Test adding content to each language to confirm that the correct information is saved under the correct tab. Signed-off-by: Philip Orr --- .../en/modules/tools/additional-contents.tt | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 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 f4a2736f28..8545297b88 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 @@ -270,19 +270,20 @@ [% IF languages.size %] -
- -
+ [% END # /WRAPPER tabs_nav %] + + [% WRAPPER tab_panels %] [% FOR language IN languages %] -
+ [% WRAPPER tab_panel tabname="lang_${language.lang}" %]
  1. @@ -296,17 +297,17 @@
-
- [% END %] -
-
+ [% END # /WRAPPER tab_panel#lang %] + [% END # /FOR language %] + [% END # /WRAPPER tab_panels %] + [% END # /WRAPPER tabs %] [% ELSE %]
- [% END %] + [% END # /IF languages.size %] [% END %] -- 2.30.2