From 4562dc8ad804876d4f5f361624a448d4edc50f23 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 17 Jan 2023 19:58:55 +0000 Subject: [PATCH] Bug 32660: Use template wrapper for basket groups tabs This patch implements the template WRAPPER system (see Bug 32571) for building tabs on the basket groups page. To test you must have at least one active vendor, one or more closed baskets under that vendor, and at least one basket group containing a closed basket. Apply the patch and go to Acquisitions -> Vendor -> Basket groups. You should see two tabs, "Open" and "Closed." The tabs should look correct and work correctly. Signed-off-by: David Nind Signed-off-by: Katrin Fischer --- .../prog/en/modules/acqui/basketgroup.tt | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt index f7ef0c98e9..f4a8f49a70 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt @@ -328,13 +328,14 @@

Basket grouping for [% booksellername | html %]

[% IF (NoEDIMessage) %]
No EDIFACT configuration for [% booksellername | html %]
[% END %] -
- -
-
+ + [% WRAPPER tabs id= "basket_groups" %] + [% WRAPPER tabs_nav %] + [% WRAPPER tab_item tabname= "opened" active= 1 %] Open [% END %] + [% WRAPPER tab_item tabname= "closed" %] Closed [% END %] + [% END %] + [% WRAPPER tab_panels %] + [% WRAPPER tab_panel tabname="opened" active= 1 %] @@ -372,8 +373,9 @@ [% END %]
-
-
+ [% END #/opened %] + + [% WRAPPER tab_panel tabname="closed" %] @@ -416,9 +418,9 @@ [% END %]
-
-
-
+ [% END #/closed %] + [% END # /WRAPPER tab_panels %] + [% END # /#basket_groups %] [% END %] -- 2.30.2