300bf06cb56cc83b4d6be28056c4da91660bf640
[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   <h1>[% 'Select a part or assembly' | $T8 %]</h1>
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 INSTANCE_CONF.get_show_bestbefore %]
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       <input type="hidden" name="new_warehouse_id_[% loop.count %]" value="[% HTML.escape(part.warehouse_id) %]">
43       <input type="hidden" name="new_bin_id_[% loop.count %]" value="[% HTML.escape(part.bin_id) %]">
44       [% HTML.escape(part.number) %]
45      </td>
46
47      <td>
48       <input type="hidden" name="new_description_[% loop.count %]" value="[% HTML.escape(part.description) %]">
49       [% HTML.escape(part.description) %]
50      </td>
51
52      [% IF has_charge %]
53      <td>
54       <input type="hidden" name="new_charge_id_[% loop.count %]" value="[% HTML.escape(part.charge_id) %]">
55       <input type="hidden" name="new_chargenumber_[% loop.count %]" value="[% HTML.escape(part.chargenumber) %]">
56       [% HTML.escape(part.chargenumber) %]
57      </td>
58      [% END %]
59      [% IF has_bestbefore %]
60      [% IF INSTANCE_CONF.get_show_bestbefore %]
61      <td>
62       <input type="hidden" name="new_bestbefore_id_[% loop.count %]" value="[% HTML.escape(part.bestbefore_id) %]">
63       <input type="hidden" name="new_bestbefore_[% loop.count %]" value="[% HTML.escape(part.bestbefore) %]">
64       [% HTML.escape(part.bestbefore) %]
65      </td>
66      [% END %]
67      [% END %]
68      [% IF has_ean %]
69      <td>
70       <input type="hidden" name="new_ean_[% loop.count %]" value="[% HTML.escape(part.ean) %]">
71       [% HTML.escape(part.ean) %]
72      [% END %]
73      </td>
74     </tr>
75     [% END %]
76    </table>
77   </p>
78
79   <p>
80    <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
81   </p>
82
83  </form>
84