From 18acd43e9dd0a5014baa624560c5b96bab54ecd4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 21 Mar 2023 16:25:48 +0000 Subject: [PATCH] Bug 33293: Use template wrapper for tabs: Holds This patch updates the holds template so that it uses the new WRAPPER directive to build tabbed navigation. Note: this patch includes indentation changes, so check the diff accordingly. To test, apply the patch and locate a bibliographic record which can be placed on hold. - Start the process of placing a hold. - If you have any patron clubs defined, there should be two tabs: Patrons and Clubs. Both should look correct and work correctly. - If you have no patron clubs you should see only the Patrons tab. Works as advertised. Signed-off-by: Paul Derscheid --- .../prog/en/modules/reserve/request.tt | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index e2d33c5415..6ce054fffc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -227,21 +227,23 @@

Search patrons

[% END %] [% END %] -
- -
-
+ [% END # /WRAPPER tabs_nav %] + + [% WRAPPER tab_panels %] + [% WRAPPER tab_panel tabname="holds_patronsearch_pane" bt_active= 1 %] [% PROCESS patron_search_filters_simple %] [% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] -
+ [% END # /tab_panel# %] [% IF clubcount %] -
+ [% WRAPPER tab_panel tabname="holds_clubsearch_pane" %]
Enter club ID or partial name:
@@ -254,10 +256,10 @@ [% IF clubs %] [% INCLUDE 'clubs-table.inc' destination = "holds" %] [% END %] -
- [% END %] -
-
+ [% END # /tab_panel# %] + [% END # /IF clubcount %] + [% END # /WRAPPER tab_panels %] + [% END # /WRAPPER tabs %] [% ELSIF club %]
-- 2.37.1 (Apple Git-137.1)