Bug 15858: Use Font Awesome icons in dialog alert for addorder.tt
authorHector Castro <hector.hecaxmmx@gmail.com>
Thu, 18 Feb 2016 20:54:53 +0000 (14:54 -0600)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 24 Feb 2016 03:13:12 +0000 (03:13 +0000)
A warning is raised when order amount exceed budget or fund this dialog needs to be styled with Font Awesome icons.

To test:
-Add orders to a basket
-Exceed a fund or budget
-Notice about the dialog alert
-Apply patch
-Exceed again and see the new icons

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/acqui/addorder.tt

index 322e535..5656b80 100644 (file)
@@ -19,7 +19,7 @@
             [% END %]
           [% END %]
           <input type="hidden" name="confirm_budget_exceeding" value="1" />
-          <div class="dialog">
+          <div class="dialog alert">
             [% IF (budget_exceeded) %]
               <p>Warning! Order total amount exceeds allowed budget.</p>
             [% END %]
@@ -30,8 +30,8 @@
               <p>Warning! You will exceed maximum limit ([% expenditure %][% IF (currency) %] [% currency %][% END %]) for your fund.</p>
             [% END %]
             <p>Do you want to confirm this order?</p>
-            <input type="submit" class="approve" value="Yes, I confirm" />
-            <input type="button" class="deny" value="No, I don't confirm" onclick="window.location.href = '[% referer %]'" />
+            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, I confirm</button>
+            <button type="button" class="deny" onclick="window.location.href = '[% referer %]'"><i class="fa fa-fw fa-remove"></i> No, I don't confirm</button>
           </div>
         </form>
       [% END %]