epic-ts
[kivitendo-erp.git] / templates / webpages / generic / error.html
index eb43ed7..a77f862 100644 (file)
@@ -1,14 +1,36 @@
-<body>
- <table width=100%>
-  <tr>
-   <th class=listtop><TMPL_VAR NAME=title DEFAULT="Error!"></th>
-  </tr>
-  <tr height="5"></tr>
+[%- USE T8 %]
+[%- USE HTML %]
 
-  <tr><td><TMPL_VAR NAME=label_error></td></tr>
- </table>
+ <div class="message_error">[% IF title_error %][% title_error %][% ELSE %][% 'Error!' | $T8 %][% END %]
+ <p class="message_error_label">[% label_error %]</p>
+ </div>
 
- <TMPL_VAR NAME=DEBUG>
+ <p style="text-align: left;"><input type="button" class="submit" onclick="history.back()" value="[% 'Back' | $T8 %]"></p>
+
+ [%- IF SHOW_BACK_BUTTON %]
+ <form>
+  <p>
+   <!--- TODO: show back button always hack
+         In which situation is it necessary to hide it?
+   <input type="button" onclick="history.back()" value="[% 'Back' | $T8 %]">
+   -->
+  </p>
+ </form>
+
+ [%- ELSIF SHOW_BUTTON %]
+
+ <form action="[% HTML.escape(script) %]" method="post">
+
+  [%- FOREACH var = VARIABLES %]
+  <input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">
+  [%- END %]
+
+  <input type="hidden" name="action" value="[% HTML.escape(action) %]">
+
+  <p>
+   <input type="submit" value="[% BUTTON_LABEL %]">
+  </p>
+ </form>
+
+ [%- END %]
 
-</body>
-</html>