From de23e3f2fb1e5c376f29953c7f93b721405d7739 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 1 Mar 2016 13:23:52 -0500 Subject: [PATCH] Bug 15950: Use Font Awesome icons for acquisitions basket close confirmation When closing a basket in Acquisitions the confirmation dialog should be styled using Font Awesome icons. This patch adds them. The cancel button has been moved into its own form so that we can get rid of several problematic JavaScript issues: The use of the "javascript:" pseudo-protocol, the use of an "onclick" attribute, and the use of a JS redirect where a GET action will do. To test, apply the patch and locate an open basket in Acquisitions which can be closed. - Click the 'Close this basket' button and confirm that the icons in the dialog look correct. - Test the cancel operation to make sure you are redirected back to the page showing the basket details. - Test the confirm operation and verify that the basket is closed. Signed-off-by: Hector Castro Works as advertised Signed-off-by: Katrin Fischer Please note that the confirmation message display depends on BasketConfirmations. Signed-off-by: Brendan A Gallagher --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index 67ee332af1..7bcbbbe762 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -649,7 +649,7 @@ [% IF ( confirm_close ) %]
-
+

Are you sure you want to close basket [% basketname|html %]?

[% IF ( CAN_user_acquisition_group_manage ) %]

@@ -662,8 +662,11 @@ - - + +

+
+ +
[% END %] -- 2.39.5