From 9e81ff8ff9a8b384855dde8b22fad7a247f86842 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Mon, 13 Feb 2017 22:53:10 +0000 Subject: [PATCH] Bug 10086: Link to go to basket from uncertain prices page This patch moves the Edit button into an Edit column, styled with bootstrap button and font awesome icon, and adds a link on the basket name to go to the basket. To test; 1) Add an item with uncertain prices to a basket 2) Go to the vendor of the basket 3) Click Uncertain prices on the left 4) Notice 'edit' button does not look like a button, and basket name is not a link 5) Apply patch and refresh page 6) Basket name is now a link. Click to confirm it takes you to the right page 7) Edit button is now in edit column. Confirm it works as expected 8) Confirm you cannot sort on Edit column and the button does not wrap on a narrower browser Sponsored-by: Catalyst IT --- .../prog/en/modules/acqui/uncertainprice.tt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt index 1243a06d13..194d837b10 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt @@ -102,6 +102,7 @@ Basket [% tp('noun', 'Order') | html %] + Edit By Uncertain Price @@ -112,7 +113,7 @@ [% FOREACH uncertainpriceorder IN uncertainpriceorders %] - [% uncertainpriceorder.basketname | html %] + [% uncertainpriceorder.basketname %] [% uncertainpriceorder.title | html %] @@ -125,9 +126,9 @@ [% END %] [% IF ( uncertainpriceorder.isbn ) %]
[% uncertainpriceorder.isbn | html %][% END %]
- - Edit - + + + Edit [% uncertainpriceorder.firstname | html %] [% uncertainpriceorder.surname | html %] @@ -172,7 +173,7 @@ $(document).ready(function() { var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ - { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, + { "aTargets": [ 2, -1, -2, -3 ], "bSortable": false, "bSearchable": false }, ], "sPaginationType": "full" })); -- 2.30.2