From df9220d35fa76eae4fb2d50aa6a8b018f5369f3c 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 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. --- .../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