1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
3 [% SET style="width: 400px" %]
6 <h1>[% HTML.escape(title) %]</h1>
8 <form action="controller.pl" method="post">
10 [%- INCLUDE 'common/flash.html' %]
12 [%- L.hidden_tag("id", SELF.partsgroup.id) %]
16 <th align="right">[% 'Description' | $T8 %]</th>
18 [%- L.input_tag("partsgroup.partsgroup", SELF.partsgroup.partsgroup) %]
20 [% IF SELF.partsgroup.id %]
22 <th align="right">[% 'Obsolete' | $T8 %]</th>
23 <td>[% L.checkbox_tag('partsgroup.obsolete', checked = SELF.partsgroup.obsolete, for_submit=1) %]</td>
30 [% L.hidden_tag("action", "PartsGroup/dispatch") %]
31 [% L.submit_tag("action_" _ (SELF.partsgroup.id ? "update" : "create"), LxERP.t8('Save'), onclick="return check_prerequisites();") %]
32 [%- IF SELF.partsgroup.id AND SELF.partsgroup.orphaned -%]
33 [% L.submit_tag("action_delete", LxERP.t8('Delete')) %]
35 <a href="[% SELF.url_for(action='list') %]">[%- LxERP.t8("Cancel") %]</a>
40 <script type="text/javascript">
42 function check_prerequisites() {
43 if ($('#partsgroup_partsgroup').val() === "") {
44 alert(kivi.t8('The description is missing.'));