f08104146258faf4b08d700cec3e223d57331410
[kivitendo-erp.git] / templates / webpages / generic / select_part.html
1 [%- USE T8 %]
2 [%- USE HTML %]
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' | $T8 %]</div>
13
14   <p>
15    <table>
16     <tr>
17      <th class="listheading">&nbsp;</th>
18      <th class="listheading">[% 'Number' | $T8 %]</th>
19      <th class="listheading">[% 'Description' | $T8 %]</th>
20      [% IF has_charge %]
21      <th class="listheading">[% 'Charge number' | $T8 %]</th>
22      [% END %]
23      [% IF has_bestbefore %]
24      [% IF conf_show_best_before %]
25      <th class="listheading">[% 'Best Before' | $T8 %]</th>
26      [% END %]
27      [% END %]
28      [% IF has_ean %]
29      <th class="listheading">[% 'EAN' | $T8 %]</th>
30      [% END %]
31     </tr>
32
33     [% FOREACH part = PARTS %]
34     <tr class="listrow[% loop.count % 2 %]">
35      <td>
36       <input type="radio" name="selection" value="[% loop.count %]"[% IF loop.first %] checked[% END %]>
37      </td>
38
39      <td>
40       <input type="hidden" name="new_id_[% loop.count %]" value="[% HTML.escape(part.id) %]">
41       <input type="hidden" name="new_number_[% loop.count %]" value="[% HTML.escape(part.number) %]">
42       [% HTML.escape(part.number) %]
43      </td>
44
45      <td>
46       <input type="hidden" name="new_description_[% loop.count %]" value="[% HTML.escape(part.description) %]">
47       [% HTML.escape(part.description) %]
48      </td>
49
50      [% IF has_charge %]
51      <td>
52       <input type="hidden" name="new_charge_id_[% loop.count %]" value="[% HTML.escape(part.charge_id) %]">
53       <input type="hidden" name="new_chargenumber_[% loop.count %]" value="[% HTML.escape(part.chargenumber) %]">
54       [% HTML.escape(part.chargenumber) %]
55      </td>
56      [% END %]
57      [% IF has_bestbefore %]
58      [% IF conf_show_best_before %]
59      <td>
60       <input type="hidden" name="new_bestbefore_id_[% loop.count %]" value="[% HTML.escape(part.bestbefore_id) %]">
61       <input type="hidden" name="new_bestbefore_[% loop.count %]" value="[% HTML.escape(part.bestbefore) %]">
62       [% HTML.escape(part.bestbefore) %]
63      </td>
64      [% END %]
65      [% END %]
66      [% IF has_ean %]
67      <td>
68       <input type="hidden" name="new_ean_[% loop.count %]" value="[% HTML.escape(part.ean) %]">
69       [% HTML.escape(part.ean) %]
70      [% END %]
71      </td>
72     </tr>
73     [% END %]
74    </table>
75   </p>
76
77   <p>
78    <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
79   </p>
80
81  </form>
82