SimpleSystemSetting: Controller für die ganzen trivialen CRUD-Masken im System-Menü
[kivitendo-erp.git] / templates / webpages / simple_system_setting / form.html
diff --git a/templates/webpages/simple_system_setting/form.html b/templates/webpages/simple_system_setting/form.html
new file mode 100644 (file)
index 0000000..da8e4a2
--- /dev/null
@@ -0,0 +1,26 @@
+[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
+
+[% SET style="width: 400px" %]
+[% SET size=15 %]
+
+<h1>[% HTML.escape(title) %]</h1>
+
+[%- INCLUDE "common/flash.html" %]
+
+<form action="controller.pl" method="post" id="form">
+
+ [%- L.hidden_tag("type", SELF.type) %]
+ [%- L.hidden_tag("id", SELF.object.id) %]
+
+ [%- SET sub_file = "simple_system_setting/_" _ sub_form_template _ "_form.html";
+     INCLUDE $sub_file %]
+
+ <p>
+  [% L.hidden_tag("action", "SimpleSystemSetting/dispatch") %]
+  [% L.submit_tag("action_" _  (SELF.object.id ? "update" : "create"), LxERP.t8("Save"), onclick="return kivi.validate_form('#form');") %]
+  [%- IF SELF.object.id && (!SELF.object.can("orphaned") || SELF.object.orphaned) -%]
+    [% L.submit_tag("action_delete", LxERP.t8("Delete"), confirm=LxERP.t8("Do you really want to delete this object?")) %]
+  [%- END %]
+  <a href="[% SELF.list_url %]">[%- LxERP.t8("Cancel") %]</a>
+ </p>
+</form>