From 6679515f713f150c80bcf8e4313f14f67577b2ce Mon Sep 17 00:00:00 2001 From: Aleisha Date: Wed, 10 Feb 2016 20:43:27 +0000 Subject: [PATCH] Bug 13778: Putting patron lists buttons into a dropdown menu MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To test: 1) Go to Tools -> Patron lists 2) If there are no lists, confirm there is a message box saying 'There are no patron lists.' 3) Create a list if you do not already have one. 4) Confirm that in the 'Actions' drop down menu next to the list, the options to 'Add patrons', 'Edit', 'Delete', and 'Print patron cards' are all there and work as expected. Sponsored-by: Catalyst IT Signed-off-by: Marc Véron Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- .../prog/en/modules/patron_lists/lists.tt | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt index 50c72138a0..ae875e7d89 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt @@ -11,7 +11,7 @@ $('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, { "autoWidth": false, "aoColumnDefs": [ - { "aTargets": [ -1, -2, -3, -4 ], "bSortable": false, "bSearchable": false }, + { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, ], "sPaginationType": "four_button" } )); @@ -38,15 +38,14 @@ New patron list + [% IF ( lists ) %] + - - - @@ -56,29 +55,25 @@ - - - [% END %]
Name Patrons in list     
[% l.name %] [% l.patron_list_patrons_rs.count || 0 %] - - Add patrons - - - - Edit - - - - Delete - - - - Print patron cards - +
+ [% ELSE %] +
There are no patron lists.
+ [% END %] [% INCLUDE 'intranet-bottom.inc' %] -- 2.39.2