Bug 15826 - Use Font Awesome icons in confirmation dialogs - Tools
authorAleisha <aleishaamohia@hotmail.com>
Tue, 16 Feb 2016 04:29:59 +0000 (04:29 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 24 Feb 2016 03:25:09 +0000 (03:25 +0000)
I only found one confirmation dialog, all the others use javascript.

To test:
Go to Tools -> Notices and Slips
Click Delete on a notice
Confirm Yes and No options still work as expected
Check Tools module in case I missed any confirm dialogs

Sponsored-by: Catalyst IT
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt

index 14e8bc4..1f7ad2b 100644 (file)
@@ -465,11 +465,11 @@ $(document).ready(function() {
             <input type="hidden" name="branchcode" value="[% letter.branchcode %]" />
             <input type="hidden" name="code" value="[% letter.code %]" />
             <input type="hidden" name="module" value="[% letter.module %]" />
-            <input type="submit" value="Yes, delete" class="approve" />
+            <button type="submit" class="approve"><i class="fa fa-check"></i> Yes, delete</button>
         </form>
 
         <form action="[% action %]" method="get">
-            <input type="submit" value="No, do not delete" class="deny" />
+            <button type="submit" class="deny"><i class="fa fa-times"></i> No, do not delete</button>
         </form>
     </div>
 [% END %]