From 3d40239f7b2344266abfb7fd402438c68504eef7 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 30b0103a80..69f548d775 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