epic-s6ts
[kivitendo-erp.git] / part / _customerprices.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE HTML %]
4 [%- USE LxERP %]
5   <tr>
6   </tr>
7   <tr>
8     <td>
9       <table id="customerprice_table">
10         <thead>
11          <tr>
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" style='width:12em'>[% 'Customer Number'      | $T8 %]</th>
16           <th class="listheading">[% 'Customer'             | $T8 %]</th>
17           <th class="listheading">[% 'Customer Part Number' | $T8 %]</th>
18           <th class="listheading">[% 'Customer Price'       | $T8 %]</th>
19           <th class="listheading">[% 'Updated'              | $T8 %]</th>
20          </tr>
21         </thead>
22         <tbody id="customerprice_rows">
23         [% SET listrow = 0 %]
24         [%- FOREACH customerprice = SELF.part.customerprices_sorted %]
25         [% listrow = listrow + 1 %]
26         [% PROCESS 'part/_customerprice_row.html' customerprice=customerprice listrow=listrow %]
27         [%- END %]
28        </tbody>
29        <tbody>
30         <tr>
31          <td></td>
32          <td></td>
33          <td></td>
34          <td align="right">[% 'Customer' | $T8 %]</td>
35          <td rowspan="2">[% P.customer_vendor.customer_picker('add_customerprice', '', style='width: 300px', class="add_customerprice_input", action={commit_one='kivi.Part.add_customerprice_row'}) %]</td>
36          <td rowspan="2" align="right">[% L.button_tag('kivi.Part.add_customerprice_row()', LxERP.t8('Add')) %]</td>
37         </tr>
38        </tbody>
39       </table>
40     </td>
41   </tr>
42   [% L.sortable_element('#customerprice_rows') %]