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