a77f86211dc0890d1c2b068fd2fa6f51ef6407ec
[kivitendo-erp.git] / templates / webpages / generic / error.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3
4  <div class="message_error">[% IF title_error %][% title_error %][% ELSE %][% 'Error!' | $T8 %][% END %]
5  <p class="message_error_label">[% label_error %]</p>
6  </div>
7
8  <p style="text-align: left;"><input type="button" class="submit" onclick="history.back()" value="[% 'Back' | $T8 %]"></p>
9
10  [%- IF SHOW_BACK_BUTTON %]
11  <form>
12   <p>
13    <!--- TODO: show back button always hack
14          In which situation is it necessary to hide it?
15    <input type="button" onclick="history.back()" value="[% 'Back' | $T8 %]">
16    -->
17   </p>
18  </form>
19
20  [%- ELSIF SHOW_BUTTON %]
21
22  <form action="[% HTML.escape(script) %]" method="post">
23
24   [%- FOREACH var = VARIABLES %]
25   <input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">
26   [%- END %]
27
28   <input type="hidden" name="action" value="[% HTML.escape(action) %]">
29
30   <p>
31    <input type="submit" value="[% BUTTON_LABEL %]">
32   </p>
33  </form>
34
35  [%- END %]
36