From 73dd78ce1cb9ee58d036290294834afd97cfbeeb Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 31 Aug 2009 08:58:20 -0500 Subject: [PATCH] Revamp interface of branch transfer limits to give finer conrol of bulk selections. Adds selection by row and by column, all/none/toggle for individual ccode/itype sets, and a tabbed interface for a more compact display. Signed-off-by: Galen Charlton --- admin/branch_transfer_limits.pl | 2 + .../modules/admin/branch_transfer_limits.tmpl | 146 ++++++++++-------- 2 files changed, 86 insertions(+), 62 deletions(-) diff --git a/admin/branch_transfer_limits.pl b/admin/branch_transfer_limits.pl index 2cee238e9e..344b70cdf0 100755 --- a/admin/branch_transfer_limits.pl +++ b/admin/branch_transfer_limits.pl @@ -90,6 +90,7 @@ foreach my $branchcode ( @branchcodes ) { $row_data{ branchcode } = $branchcode; push ( @branchcode_loop, \%row_data ); } +my $branchcount = scalar(@branchcode_loop); ## Build the default data my @codes_loop; @@ -124,6 +125,7 @@ foreach my $code ( @codes ) { $template->param( + branchcount => $branchcount, codes_loop => \@codes_loop, branchcode_loop => \@branchcode_loop, limit_phrase => $limit_phrase, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tmpl index f47e6223dd..1b25f6fa0e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tmpl @@ -1,33 +1,59 @@ Koha › Administration › Library Transfer Limits - + - - + @@ -41,48 +67,43 @@
-
- -
+

Library Transfer Limits

+

Check the boxes for the items that should not be transferable.

+
For all s: Check All | Uncheck All | Toggle All
+ -

Library Transfer Limits

-
Check the boxes for the items that should not be transferable.
+
+ -
-
- + + + +
table"> - - - + + + + + + + + - - - - - + + + -
To/From To:
From:
Limits for :
row" class="checkrow" /> @@ -99,14 +120,15 @@
+
+ +
- - +
+ Cancel
-
-- 2.39.5