c06a200f9f4de1b9457546bbf3dabb1da2168b09
[kivitendo-erp.git] / templates / webpages / generic / select_part_en.html
1 [% USE HTML %]<body [% IF onload %]onload="[% onload %]"[% END %]>
2
3  <form method="post" action="[% HTML.escape(script) %]">
4
5   <input type="hidden" name="nextsub" value="[% HTML.escape(nextsub) %]">
6   <input type="hidden" name="callback_sub" value="[% HTML.escape(callback_sub) %]">
7
8   <input type="hidden" name="old_form" value="[% HTML.escape(old_form) %]">
9   <input type="hidden" name="remap_parts_id" value="[% HTML.escape(remap_parts_id) %]">
10   <input type="hidden" name="remap_partnumber" value="[% HTML.escape(remap_partnumber) %]">
11
12   <div class="listtop">Select a part or assembly</div>
13
14   <p>
15    <table>
16     <tr>
17      <th class="listheading">&nbsp;</th>
18      <th class="listheading">Number</th>
19      <th class="listheading">Description</th>
20      [% IF has_charge %]
21      <th class="listheading">Charge number</th>
22      [% END %]
23      [% IF has_bestbefore %]
24      <th class="listheading">Best Before</th>
25      [% END %]
26      [% IF has_ean %]
27      <th class="listheading">EAN</th>
28      [% END %]
29     </tr>
30
31     [% FOREACH part = PARTS %]
32     <tr class="listrow[% loop.count % 2 %]">
33      <td>
34       <input type="radio" name="selection" value="[% loop.count %]"[% IF loop.first %] checked[% END %]>
35      </td>
36
37      <td>
38       <input type="hidden" name="new_id_[% loop.count %]" value="[% HTML.escape(part.id) %]">
39       <input type="hidden" name="new_number_[% loop.count %]" value="[% HTML.escape(part.number) %]">
40       [% HTML.escape(part.number) %]
41      </td>
42
43      <td>
44       <input type="hidden" name="new_description_[% loop.count %]" value="[% HTML.escape(part.description) %]">
45       [% HTML.escape(part.description) %]
46      </td>
47
48      [% IF has_charge %]
49      <td>
50       <input type="hidden" name="new_charge_id_[% loop.count %]" value="[% HTML.escape(part.charge_id) %]">
51       <input type="hidden" name="new_chargenumber_[% loop.count %]" value="[% HTML.escape(part.chargenumber) %]">
52       [% HTML.escape(part.chargenumber) %]
53      </td>
54      [% END %]
55      [% IF has_bestbefore %]
56      <td>
57       <input type="hidden" name="new_bestbefore_id_[% loop.count %]" value="[% HTML.escape(part.bestbefore_id) %]">
58       <input type="hidden" name="new_bestbefore_[% loop.count %]" value="[% HTML.escape(part.bestbefore) %]">
59       [% HTML.escape(part.bestbefore) %]
60      </td>
61      [% END %]
62      [% IF has_ean %]
63      <td>
64       <input type="hidden" name="new_ean_[% loop.count %]" value="[% HTML.escape(part.ean) %]">
65       [% HTML.escape(part.ean) %]
66      [% END %]
67      </td>
68     </tr>
69     [% END %]
70    </table>
71   </p>
72
73   <p>
74    <input type="submit" class="submit" name="action" value="Continue">
75   </p>
76
77  </form>
78
79 </body>
80 </html>