Bugzilla – Attachment 48517 Details for
Bug 15950
Use Font Awesome icons for acquisitions basket close confirmation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15950 - Use Font Awesome icons for acquisitions basket close confirmation
Bug-15950---Use-Font-Awesome-icons-for-acquisition.patch (text/plain), 2.79 KB, created by
Owen Leonard
on 2016-03-01 18:29:58 UTC
(
hide
)
Description:
Bug 15950 - Use Font Awesome icons for acquisitions basket close confirmation
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-03-01 18:29:58 UTC
Size:
2.79 KB
patch
obsolete
>From 5b80c74bfc2a663665c5e5540638681472a9cd0f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 1 Mar 2016 13:23:52 -0500 >Subject: [PATCH] Bug 15950 - Use Font Awesome icons for acquisitions basket > close confirmation >Content-Type: text/plain; charset="utf-8" > >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. >--- > 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 3b3e1b1..5254c71 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >@@ -645,7 +645,7 @@ > [% IF ( confirm_close ) %] > <div id="closebasket_needsconfirmation" class="dialog alert"> > >- <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm"> >+ <form action="/cgi-bin/koha/acqui/basket.pl"> > <h1>Are you sure you want to close basket [% basketname|html %]?</h1> > [% IF ( CAN_user_acquisition_group_manage ) %] > <p> >@@ -658,8 +658,11 @@ > <input type="hidden" name="booksellerid" value="[% booksellerid %]" /> > <input type="hidden" name="confirm" value="1" /> > <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" /> >- <input type="submit" class="approve" value="Yes, close (Y)" accesskey="y" /> >- <input type="submit" class="deny" value="No, don't close (N)" accesskey="n" onclick="javascript:window.location='/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]';return false;" /> >+ <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button> >+ </form> >+ <form action="/cgi-bin/koha/acqui/basket.pl" method="get"> >+ <input type="hidden" name="basketno" value="[% basketno %]" /> >+ <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button> > </form> > </div> > [% END %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15950
:
48517
|
48518
|
48582