From b2064e6121bcd88d82980106046d176cbc9273da 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 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. --- .../prog/en/modules/admin/curbside_pickup.tt | 29 ++++++++++--------- 1 file changed, 15 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 822fe73649..10ae780ec3 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 @@ -63,27 +63,28 @@
The [% pref_CurbsidePickup_link | $raw | $KohaSpan %] preference is not enabled, do not forget to enable it to turn the feature on.
[% END %]
-
- + [% 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. @@ -160,10 +161,10 @@
-
- [% END %] -
-
+ [% END # /tab_panel %] + [% END #FOREACH l %] + [% END # /WRAPPER tab_panels %] + [% END # /WRAPPER tabs %] -- 2.30.2