Presenter: Neue Struktur im Warenstamm umgesetzt
[kivitendo-erp.git] / templates / webpages / part / _makemodel.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE P %]
4 [%- USE HTML %]
5 [%- USE LxERP %]
6   <tr>
7   </tr>
8   <tr>
9     <td>
10       <table id="makemodel_table">
11         <thead>
12           <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/close.png" alt="[%- LxERP.t8('delete item') %]"></th>
13           <th class="listheading">[% 'position'     | $T8 %]</th>
14           <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
15           <th class="listheading">[% 'Vendor Number' | $T8 %]</th>
16           <th class="listheading">[% 'Vendor'        | $T8 %]</th>
17           <th class="listheading">[% 'Model'         | $T8 %]</th>
18           <th class="listheading">[% 'Last Cost'     | $T8 %]</th>
19           <th class="listheading">[% 'Updated'       | $T8 %]</th>
20         </thead>
21         <tbody id="makemodel_rows">
22         [% SET listrow = 0 %]
23         [%- FOREACH makemodel = SELF.part.makemodels %]
24         [% listrow = listrow + 1 %]
25         [% PROCESS 'part/_makemodel_row.html' makemodel=makemodel listrow=listrow %]
26         [%- END %]
27        </tbody>
28        <tbody>
29         <tr>
30          <td></td>
31          <td></td>
32          <td></td>
33          <td align="right">[% 'Vendor' | $T8 %]</td>
34          <td rowspan="2">[% P.customer_vendor.picker('add_makemodel', '', type='vendor', style='width: 300px', class="add_makemodel_input") %]</td>
35          <td rowspan="2" align="right">[% L.button_tag('kivi.Part.add_makemodel_row()', LxERP.t8('Add')) %]</td>
36         </tr>
37        </tbody>
38       </table>
39     </td>
40   </tr>
41   [% L.sortable_element('#makemodel_rows') %]
42
43   <script type="text/javascript">
44   $(function() {
45
46     $('#makemodel_rows').on('sortstop', function(event, ui) {
47       kivi.Part.makemodel_renumber_positions();
48     });
49
50   })
51   </script>