From c2ad24a37b02d0f8fac690d17179d7a1e22fa09e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 5 Jan 2023 13:49:00 +0000 Subject: [PATCH] Bug 32649: Use template wrapper for library transfer limits tabs This patch implements the template WRAPPER system (see Bug 32571) for building tabs on the library transfer limits page. To test, apply the patch and go to Administration -> Library transfer limits. It should look the same as before and all tabs should function correctly. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../modules/admin/branch_transfer_limits.tt | 87 +++++++++---------- 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt index 9ada2725bf..478452fe46 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt @@ -54,50 +54,49 @@ Switch to advanced editor - -
- -
-
- - [% FOREACH codes_loo IN codes_loop %] -
-

Policy for [% codes_loo.limit_phrase | html %]: [% codes_loo.code | html %]

- -

Select all | Clear all

- - - - - - - - - - - [% FOREACH to_branch_loo IN codes_loo.to_branch_loop %] - - - - - [% END %] - -
LibraryAllow transfer?
- [% IF ( to_branch_loo.isChecked ) %] - - [% ELSE %] - - [% END %] -
-
- [% END %] -
+ [% END %] + + + [% WRAPPER tab_panels %] + [% FOREACH codes_loo IN codes_loop %] + [% WRAPPER tab_panel tabname=codes_loo.code %] +

Policy for [% codes_loo.limit_phrase | html %]: [% codes_loo.code | html %]

+ +

Select all | Clear all

+ + + + + + + + + + + [% FOREACH to_branch_loo IN codes_loo.to_branch_loop %] + + + + + [% END %] + +
LibraryAllow transfer?
+ [% IF ( to_branch_loo.isChecked ) %] + + [% ELSE %] + + [% END %] +
+ [% END #/WRAPPER tab_panel %] + [% END # /FOREACH codes_loo %] + [% END # /WRAPPER tab_panels %]
@@ -105,8 +104,8 @@ Cancel
-
-
+ +[% END # /WRAPPER tabs %] -- 2.39.5