Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorder.tt
Hector Castro 6656f6b704 Bug 15858: Use Font Awesome icons in dialog alert for addorder.tt
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
2016-02-24 03:13:12 +00:00

41 lines
1.6 KiB
Text

[% INCLUDE "doc-head-open.inc" %]
<title>Koha &rsaquo; Acquisition &rsaquo; Add order</title>
[% INCLUDE "doc-head-close.inc" %]
</head>
<body id="acq_addorder" class="acq">
[% INCLUDE "header.inc" %]
<div id="doc3" class="yui-t7">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
[% IF (not_enough_budget) %]
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post">
[% FOREACH var IN vars_loop %]
[% FOREACH val IN var.values %]
<input type="hidden" name="[% var.name %]" value="[% val |html %]" />
[% END %]
[% END %]
<input type="hidden" name="confirm_budget_exceeding" value="1" />
<div class="dialog alert">
[% IF (budget_exceeded) %]
<p>Warning! Order total amount exceeds allowed budget.</p>
[% END %]
[% IF (encumbrance_exceeded) %]
<p>Warning! You will exceed [% encumbrance %]% of your fund.</p>
[% END %]
[% IF (expenditure_exceeded) %]
<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>
<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 %]
</div>
</div>
</div>
[% INCLUDE "intranet-bottom.inc" %]