30a5c5b14ecc8425dbc13437612d053b85c78d04
[kivitendo-erp.git] / templates / webpages / requirement_spec_item / _section_form.html
1 [%- USE HTML %][%- USE L %][%- USE LxERP %]
2 [%- DEFAULT id_base="edit_section" %]
3 [%- SET style="width: 500px" %]
4 <form id="[% id_base %]_form">
5  [%- IF SELF.item.id %]
6   [%- SET hidden = '#section-header-' _ SELF.item.id %]
7   <h1>[%- LxERP.t8("Edit section #1", SELF.item.fb_number) %]</h1>
8
9  [%- ELSE %]
10   [%- SET hidden = '#column-content > *' %]
11   <h1>[%- LxERP.t8("Add section") %]</h1>
12
13  [%- END %]
14
15  [% L.hidden_tag('form_prefix',                    id_base       id=id_base _ '_form_prefix') %]
16  [% L.hidden_tag('id',                             SELF.item.id, id=id_base _ '_id') %]
17  [% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.item.requirement_spec_id) %]
18  [% IF insert_after %]
19   [% L.hidden_tag(id_base _ '.insert_after',       insert_after) %]
20  [% END %]
21
22  <p>
23   [%- LxERP.t8("Title") %]:<br>
24   [% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %]
25  </p>
26
27  <p>
28   [%- LxERP.t8("Description") %]:<br>
29   [% L.textarea_tag(id_base _ '.description', SELF.item.description, rows=8, cols=80, style=style) %]
30  </p>
31
32  <p>
33   [% L.ajax_submit_tag('controller.pl?action=RequirementSpecItem/ajax_' _ (SELF.item.id ? 'update' : 'create'), '#' _ id_base _ '_form', LxERP.t8('Save')) %]
34   <a href="#" onclick="cancel_edit_item_form('[% id_base %]', { to_show: '[% hidden %]' })">[%- LxERP.t8("Cancel") %]</a>
35  </p>
36 </form>