SimpleSystemSetting: Controller für die ganzen trivialen CRUD-Masken im System-Menü
[kivitendo-erp.git] / templates / webpages / simple_system_setting / form.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
2
3 [% SET style="width: 400px" %]
4 [% SET size=15 %]
5
6 <h1>[% HTML.escape(title) %]</h1>
7
8 [%- INCLUDE "common/flash.html" %]
9
10 <form action="controller.pl" method="post" id="form">
11
12  [%- L.hidden_tag("type", SELF.type) %]
13  [%- L.hidden_tag("id", SELF.object.id) %]
14
15  [%- SET sub_file = "simple_system_setting/_" _ sub_form_template _ "_form.html";
16      INCLUDE $sub_file %]
17
18  <p>
19   [% L.hidden_tag("action", "SimpleSystemSetting/dispatch") %]
20   [% L.submit_tag("action_" _  (SELF.object.id ? "update" : "create"), LxERP.t8("Save"), onclick="return kivi.validate_form('#form');") %]
21   [%- IF SELF.object.id && (!SELF.object.can("orphaned") || SELF.object.orphaned) -%]
22     [% L.submit_tag("action_delete", LxERP.t8("Delete"), confirm=LxERP.t8("Do you really want to delete this object?")) %]
23   [%- END %]
24   <a href="[% SELF.list_url %]">[%- LxERP.t8("Cancel") %]</a>
25  </p>
26 </form>