0a1fc7fc1eeb51da9b0c5bdc9306133028b4d029
[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(id_base _ '_id',                  SELF.item.id) %]
16  [% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.item.requirement_spec_id) %]
17  [% IF insert_after %]
18   [% L.hidden_tag(id_base _ '.insert_after',       insert_after) %]
19  [% END %]
20
21  <p>
22   [%- LxERP.t8("Title") %]:<br>
23   [% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %]
24  </p>
25
26  <p>
27   [%- LxERP.t8("Description") %]:<br>
28   [% L.textarea_tag(id_base _ '.description', SELF.item.description, rows=8, cols=80, style=style) %]
29  </p>
30
31  <p>
32   [% L.button_tag('submit_edit_item_form("' _ id_base _ '")', LxERP.t8('Save')) %]
33   <a href="#" onclick="cancel_edit_item_form('[% id_base %]', '[% hidden %]')">[%- LxERP.t8("Cancel") %]</a>
34  </p>
35 </form>