From 23c8dc0e6384779c0eaf8441d598b60ac6aea46e Mon Sep 17 00:00:00 2001 From: Aleisha Date: Fri, 13 May 2016 00:46:40 +0000 Subject: [PATCH] Bug 16511: Making contracts actions buttons To test: 1) Go to Acqui -> find a vendor 2) On Vendor details page (supplier.pl) confirm that Contracts table now has one column called Actions 3) Confirm that Edit and Delete show as buttons 4) Confirm that buttons don't wrap on a narrower browser 5) Click Contracts tab 6) Confirm Actions column, Edit and Delete buttons, and button's don't wrap Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 11 ++++++----- koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt | 8 +++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt index 2a62288d2a..d36d7897a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -117,7 +117,7 @@ function delete_contact(ev) { $(document).ready(function() { var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ - { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, + { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, { "sType": "title-string", "aTargets" : [ "title-string" ] } ], 'sDom': 't' @@ -369,8 +369,7 @@ function delete_contact(ev) { Description Start date End date -   -   + Actions @@ -382,8 +381,10 @@ function delete_contact(ev) { [% contract.contractdescription %] [% contract.contractstartdate | $KohaDates %] [% contract.contractenddate | $KohaDates %] - Edit - Delete + + Edit + Delete + [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt index da8c08a48d..304688aa38 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt @@ -181,7 +181,7 @@ function Check(ff) { Description Start date End date -   + Actions [% FOREACH loo IN loop %] @@ -191,8 +191,10 @@ function Check(ff) { [% loo.contractdescription %] [% loo.contractstartdate %] [% loo.contractenddate %] - Edit - Delete + + Edit + Delete + [% END %] -- 2.11.4.GIT