]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/part/_makemodel.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / part / _makemodel.html
1 [% USE T8 %]
2 [% USE L %]
3 [% USE P %]
4 [% USE HTML %]
5 [% USE LxERP %]
6
7 <table id="makemodel_table" class="tbl-list wi-moderate">
8   <caption>[% 'Makemodel Price' | $T8 %]</caption>
9   <colgroup>
10     <col class="wi-verytiny">
11     <col>
12     <col class="wi-verytiny">
13     <col class="wi-mediumsmall">
14     <col class="wi-mediumsmall">
15     <col class="wi-mediumsmall">
16     <col class="wi-mediumsmall">
17     <col class="wi-mediumsmall">
18     <col class="wi-small">
19     <col class="wi-small">
20   </colgroup>
21   <thead>
22     <tr>
23       <th class="center"><img src="image/close.png" alt="[% LxERP.t8('delete item') %]"></th>
24       <th class="center">[% 'position'      | $T8 %]</th>
25       <th class="center"><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></th>
26       <th>[% 'Vendor Number'    | $T8 %]</th>
27       <th>[% 'Vendor'           | $T8 %]</th>
28       <th>[% 'Model'            | $T8 %]</th>
29       <th>[% 'Part Description' | $T8 %]</th>
30       <th>[% 'Long Description' | $T8 %]</th>
31       <th>[% 'Last Cost'        | $T8 %]</th>
32       <th>[% 'Updated'          | $T8 %]</th>
33     </tr>
34   </thead>
35   <tbody id="makemodel_rows">
36     [% SET listrow = 0 %]
37     [% FOREACH makemodel = SELF.part.makemodels %]
38       [% listrow = listrow + 1 %]
39       [% PROCESS 'part/_makemodel_row.html' makemodel=makemodel listrow=listrow %]
40     [% END %]
41   </tbody>
42   <!-- PENDENT: koennte besser und schoener geloest werden! -->
43   <tfoot>
44     <tr>
45      <td></td>
46      <td></td>
47      <td></td>
48      <th class="right"><span class="label">[% 'Search & Add Vendor' | $T8 %]</span></th>
49      <td>
50         [% SET titleaddmodel=LxERP.t8('Search & Add Vendor by Name') %]
51         [% P.customer_vendor.picker('add_makemodel', '', type='vendor', class='add_makemodel_input tooltipstered tooltipster-html wi-mediumsmall', title=titleaddmodel, action={commit_one='kivi.Part.add_makemodel_row'}, size=10) %]
52       </td>
53      <td>[% L.button_tag('kivi.Part.add_makemodel_row()', LxERP.t8('Add')) %]</td>
54      <td colspan="4"></td>
55     </tr>
56   </tfoot>
57 </table>
58 [% L.sortable_element('#makemodel_rows') %]
59
60 <script type="text/javascript">
61 /*
62   $(function() {
63     $('#makemodel_rows').on('sortstop', function(event, ui) {
64       kivi.Part.makemodel_renumber_positions();
65     });
66   })
67  */
68 </script><!-- PENDENT: Ueberpruefen -->