From 50ab0f05652c83cf53d1d4e792e465cc74ed77a5 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=UTF-8 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 --- .../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 c16d6d1..ae875e7 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' %] -- 1.7.10.4