Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorder.tt
Kyle M Hall 3737241a6a
Bug 34478: Changes for addorder
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2024-03-01 10:57:48 +01:00

44 lines
1.9 KiB
Text

[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE "doc-head-open.inc" %]
<title>[% FILTER collapse %]
[% t("Add order") | html %] &rsaquo;
[% t("Acquisition") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE "doc-head-close.inc" %]
</head>
<body id="acq_addorder" class="acq">
[% INCLUDE "header.inc" %]
<div class="container-fluid">
[% IF (not_enough_budget) %]
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post">
<input type="hidden" name="op" value="cud-order"/>
[% INCLUDE 'csrf-token.inc' %]
[% FOREACH var IN vars_loop %]
[% FOREACH val IN var.values %]
<input type="hidden" name="[% var.name | html %]" value="[% val | html %]" />
[% END %]
[% END %]
<input type="hidden" name="op" value="cud-addorder">
<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 | html %]% of your fund.</p>
[% END %]
[% IF (expenditure_exceeded) %]
<p>Warning! You will exceed maximum limit ([% expenditure | html %][% IF (currency) %] [% currency | html %][% 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 | html %]'"><i class="fa fa-fw fa-times"></i> No, I don't confirm</button>
</div>
</form>
[% END %]
[% INCLUDE "intranet-bottom.inc" %]