From 7b871454b113172932022311f1e345f53924fa0a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 May 2025 18:59:33 +0000 Subject: [PATCH] Bug 39810: Use select2 to select library limitations in credit and debit type administration This patch updates the credit and debit type administration templates so that library selection uses a Select2-styled menu instead of a standard - + -
Select 'All libraries' if this credit type should be available at all libraries. Otherwise select libraries you want to associate credit type with.
+
Limit the use of this credit type to the selected libraries.
[% END %] @@ -237,6 +236,7 @@ [% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'select2.inc' %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt index f6210039d14..e0e38da88e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt @@ -131,8 +131,8 @@ [% END %]
  • - - [% FOREACH branch IN branches_loop %] [% IF ( branch.selected ) %] @@ -142,7 +142,7 @@ [% END %] [% END %] -
    Select 'All libraries' if this debit type should be available at all libraries. Otherwise select libraries you want to associate debit type with.
    +
    Limit use of this debit type to the selected libraries.
  • @@ -253,6 +253,7 @@ [% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'select2.inc' %] [% END %] -- 2.39.5