Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / requirement_spec_part / _edit.html
1 [%- USE LxERP -%][%- USE L -%][%- USE P -%]
2 [% SET parts = SELF.requirement_spec.parts_sorted %]
3
4 <div id="additional_parts_form_container" class="edit-additional-parts-context-menu">
5
6  <h2>[% LxERP.t8("Edit additional articles") %]</h2>
7
8  <div>
9   [% LxERP.t8("Add part") %]:
10   [% P.part.picker('additional_parts_add_part_id', '', style="width: 300px") %]
11   [% L.button_tag('kivi.requirement_spec.add_additional_part()', LxERP.t8('Add part')) %]
12  </div>
13
14  <form method="post" id="edit_additional_parts_form">
15   <div id="edit_additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
16    [% LxERP.t8("No articles have been added yet.") %]
17   </div>
18
19   <table id="edit_additional_parts_list"[% IF !parts.size %] style="display: none;"[% END %]>
20    <thead>
21     <tr class="listheading">
22      <th></th>
23      <th>[%- LxERP.t8("Part Number") %]</th>
24      <th>[%- LxERP.t8("Description") %]</th>
25      <th>[%- LxERP.t8("Qty") %]</th>
26     </tr>
27    </thead>
28
29    <tbody>
30     [%- FOREACH part = parts %]
31      [%- INCLUDE 'requirement_spec_part/_part.html' part=part %]
32     [%- END %]
33    </tbody>
34   </table>
35
36    [% L.button_tag("kivi.requirement_spec.standard_additional_parts_ajax_call('save')", LxERP.t8("Save")) %]
37   </form>
38 </div>