</html> entfernen
[kivitendo-erp.git] / templates / webpages / generic / select_part.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 <body [%- IF onload %]onload="[%- onload %]"[%- END %]>
4
5  <form method="post" action="[% HTML.escape(script) %]">
6
7   <input type="hidden" name="nextsub" value="[% HTML.escape(nextsub) %]">
8   <input type="hidden" name="callback_sub" value="[% HTML.escape(callback_sub) %]">
9
10   <input type="hidden" name="old_form" value="[% HTML.escape(old_form) %]">
11   <input type="hidden" name="remap_parts_id" value="[% HTML.escape(remap_parts_id) %]">
12   <input type="hidden" name="remap_partnumber" value="[% HTML.escape(remap_partnumber) %]">
13
14   <div class="listtop">[% 'Select a part or assembly' | $T8 %]</div>
15
16   <p>
17    <table>
18     <tr>
19      <th class="listheading">&nbsp;</th>
20      <th class="listheading">[% 'Number' | $T8 %]</th>
21      <th class="listheading">[% 'Description' | $T8 %]</th>
22      [% IF has_charge %]
23      <th class="listheading">[% 'Charge number' | $T8 %]</th>
24      [% END %]
25      [% IF has_bestbefore %]
26      [% IF conf_show_best_before %]
27      <th class="listheading">[% 'Best Before' | $T8 %]</th>
28      [% END %]
29      [% END %]
30      [% IF has_ean %]
31      <th class="listheading">[% 'EAN' | $T8 %]</th>
32      [% END %]
33     </tr>
34
35     [% FOREACH part = PARTS %]
36     <tr class="listrow[% loop.count % 2 %]">
37      <td>
38       <input type="radio" name="selection" value="[% loop.count %]"[% IF loop.first %] checked[% END %]>
39      </td>
40
41      <td>
42       <input type="hidden" name="new_id_[% loop.count %]" value="[% HTML.escape(part.id) %]">
43       <input type="hidden" name="new_number_[% loop.count %]" value="[% HTML.escape(part.number) %]">
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 conf_show_best_before %]
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
85 </body>