Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorder.tt
Jonathan Druart a3c0c92508
Bug 34478: Add missing CSRF token to POST forms
This is the result of
  % perl csrf_add_missing_csrf.pl

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2024-03-01 10:55:57 +01:00

42 lines
1.7 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">
[% 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="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" %]