From b429c1657eab6bbc4c1f740a98c3f178dd599332 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 17 Jan 2023 20:49:48 +0000 Subject: [PATCH] Bug 32662: Use template wrapper for item circulation alerts page This patch implements the template WRAPPER system (see Bug 32571) for building tabs on the item circulation alerts page. To test, apply the patch and go to Administration -> Item circulation alerts. There should be two tabs, "Checkout" and "Check-in" which work correctly. --- .../modules/admin/item_circulation_alerts.tt | 46 ++++++++++++------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt index e067c194f2..756372c701 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt @@ -113,16 +113,31 @@

Circulation alerts for [% Branches.GetName( branch ) || 'Default' | html %]

Click on the grid to toggle the settings.

- -
- - - -
-
+ + + + + + + + + + content + [% END %] + [% WRAPPER tab_panel tabname="tab_name_2" %] + content + [% END %] + + [% END %] + [% END %] + [% WRAPPER tabs id= "alerttabs" %] + [% WRAPPER tabs_nav %] + [% WRAPPER tab_item tabname= "checkout" active= 1 %] Checkout [% END %] + [% WRAPPER tab_item tabname= "checkin" %] Check-in [% END %] + [% END %] + + [% WRAPPER tab_panels %] + [% WRAPPER tab_panel tabname="checkout" active= 1 %]

Checkout

@@ -144,9 +159,9 @@ [% END %]
-
+ [% END #/ #checkout %] -
+ [% WRAPPER tab_panel tabname="checkin" %]

Check-in

@@ -168,11 +183,10 @@ [% END %]
-
-
- -
+ [% END # /#checkin %] + [% END # /.tab_panels %] + [% END # //#alerttabs %] -- 2.20.1