From c76992a5498e88ad9757f41009a744ae10f1b268 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Mon, 11 Apr 2016 02:10:54 +0000 Subject: [PATCH] Bug 16235: Making borrower account actions buttons To test: 1) Go to a borrower's account page who has paid fines before a) Confirm column heading is now 'Actions' and covers both Reverse column and Print column b) Confirm Reverse and Print show as buttons and work as expected 2) Go to a borrower's account page who has never paid fines (or create a new borrower) a) Create a manual credit (just to put something in their account) b) Go back to their account page c) Confirm the Reverse column does not show as the column heading for Print is   (since there is only one action in this column and it's written on every button) d) Confirm Print shows as a button and works as expected Sponsored-by: Catalyst IT --- .../intranet-tmpl/prog/en/modules/members/boraccount.tt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 09b5c67..fa00f56 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -14,7 +14,8 @@ $(document).ready(function() { 'aaSorting': [[0, 'desc']], "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>', "aoColumnDefs": [ - { "sType": "title-string", "aTargets" : [ "title-string" ] } + { "sType": "title-string", "aTargets" : [ "title-string" ] }, + { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false } ] })); $("#filter_c").html('

'+txtActivefilter+''); @@ -66,9 +67,10 @@ $(document).ready(function() { Amount Outstanding [% IF ( reverse_col ) %] -   + Actions + [% ELSE %] +   [% END %] - Print @@ -107,7 +109,7 @@ $(document).ready(function() { [% IF ( reverse_col ) %] [% IF ( account.payment ) %] - Reverse + Reverse [% ELSE %]   [% END %] @@ -115,9 +117,9 @@ $(document).ready(function() { [% END %] [% IF ( account.payment ) %] - Print + Print [% ELSE %] - Print + Print [% END %] -- 1.7.10.4