From 7418899f3ca4ac26bd9bf71aaaee7fd836292e32 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 20 Jan 2023 16:39:32 +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. Signed-off-by: David Nind Signed-off-by: Katrin Fischer --- .../modules/admin/item_circulation_alerts.tt | 29 +++++++++---------- 1 file changed, 13 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..f97c98c41e 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,14 @@

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

Click on the grid to toggle the settings.

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

Checkout

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

Check-in

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