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