Mandantenkonfiguration vereinfacht & in mehrere Dateien gespalten und in Tab-Dialog...
[kivitendo-erp.git] / templates / webpages / admin / test_db_connection.html
index fc0b283..df9a59d 100644 (file)
@@ -1,28 +1,21 @@
-[%- USE T8 %]
-[% USE HTML %]<body>
+[%- USE HTML %][%- USE LxERP -%][%- USE L -%]
+<h1>[% HTML.escape(title) %]</h1>
 
- <div class="listtop">[% title %]</div>
+[%- IF ok %]
 
- [%- IF connection_ok %]
+ <p class="message_ok">[% LxERP.t8('The connection was established successfully.') %]</p>
 
- <p class="message_ok">[% 'The connection was established successfully.' | $T8 %]</p>
-
- [%- ELSE %]
+[%- ELSE %]
 
  <p class="message_error">
-  [% 'The connection to the database could not be established.' | $T8 %]
-  [% 'Error message from the database driver:' | $T8 %]
+  [% LxERP.t8('The connection to the database could not be established.') %]
+  [% LxERP.t8('Error message from the database driver:') %]
  </p>
 
- <p>[% HTML.escape(errstr) %]</p>
-
- [%- END %]
+ <p>[% HTML.escape(error) %]</p>
 
- <p>
-  <form>
-   <input type="button" class="submit" onclick="window.close()" value="[% 'Close Window' | $T8 %]">
-  </form>
- </p>
+[%- END %]
 
-</body>
-</html>
+<div>
+ [% L.button_tag("\$('#jqm_popup_dialog .close').trigger('click');", LxERP.t8("Close Window")) %]
+</div>