From 5d5edccd66a9c5ed7dba939f058d1c38106a50ac 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. --- .../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 1a5e53bee4..546c08780b 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 @@ -268,19 +268,20 @@ [% IF languages.size %] -
- -
+ [% END # /WRAPPER tabs_nav %] + + [% WRAPPER tab_panels %] [% FOR language IN languages %] -
+ [% WRAPPER tab_panel tabname="lang_${language.lang}" %]
  1. @@ -294,17 +295,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