From ebd9531e8b01a4b4b4c7ba1257390ed99aef3563 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 18 Jan 2024 16:21:56 +0000 Subject: [PATCH] Bug 35838: Use template wrapper for tabs: Curbside pickups administration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch updates the curbside pickups administration template so that it uses the new WRAPPER directive to build tabbed navigation. To test, apply the patch and enable curbside pickups if necessary: Administration -> System preferences -> CurbsidePickup. - Go to Administration -> Curbside pickups. - Confirm that the tabs look correct and behave as expected. Signed-off-by: Loïc Vassaux--Artur Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- .../prog/en/modules/admin/curbside_pickup.tt | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt index 931d0832f6..8c557f7fdd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt @@ -65,27 +65,27 @@ [% END %]
[% INCLUDE 'csrf-token.inc' %] -
- + [% END # /WRAPPER tabs_nav %] -
+ [% WRAPPER tab_panels %] [% FOREACH l IN libraries %] [% SET branchcode = l.branchcode %] [% IF loop.first %] -
+ [% SET bt_active = 1 %] [% ELSE %] -
+ [% SET bt_active = 0 %] [% END %] + [% WRAPPER tab_panel tabname= "conf-${l.branchcode}" bt_active= bt_active %]
  1. @@ -162,10 +162,10 @@
-
- [% END %] -
-
+ [% END # /tab_panel %] + [% END #FOREACH l %] + [% END # /WRAPPER tab_panels %] + [% END # /WRAPPER tabs %] -- 2.39.5