Merge branch 'master' of ssh://lx-office/~/lx-office-erp
[kivitendo-erp.git] / templates / webpages / wh / removal_parts_selection_master.html
1 [% USE HTML %][% USE JavaScript %]<body>
2
3  <form method="post" action="wh.pl">
4
5   <input type="hidden" name="nextsub" value="remove_parts">
6   <input type="hidden" name="warehouse_id" value="[% HTML.escape(warehouse_id) %]">
7
8   <div class="listtop">[% title %]</div>
9
10   <p><translate>Removal from warehouse</translate>: [% warehouse_description %]</p>
11
12   <p>
13    <table>
14     <tr>
15      <td><translate>Select type of removal</translate>:</td>
16      <td>
17       <select name="transfer_type_id">
18        [%- FOREACH type = TRANSFER_TYPES %]<option value="[% HTML.escape(type.id) %]">[% HTML.escape(type.description) %]</option>[% END %]
19       </select>
20      </td>
21     </tr>
22
23     <tr>
24      <td><translate>Optional comment</translate>:</td>
25      <td><input name="comment" size="60"></td>
26     </tr>
27    </table>
28   </p>
29
30   <p>
31    <table>
32     <tr>
33      <th class="listheading"><translate>Bin</translate></th>
34      <th class="listheading"><translate>Part Number</translate></th>
35      <th class="listheading"><translate>Part Description</translate></th>
36      <th class="listheading"><translate>Charge Number</translate></th>
37      [% IF conf_show_best_before %]
38      <th class="listheading"><translate>Best Before</translate></th>
39      [% END %]
40      <th class="listheading"><translate>EAN</translate></th>
41      <th class="listheading"><translate>Available qty</translate></th>
42      <th class="listheading"><translate>Removal qty</translate></th>
43     </tr>
44
45     [% FOREACH row = CONTENTS %]
46     <tr class="listrow[% loop.count % 2 %]">
47      <input type="hidden" name="src_bin_id_[% loop.count %]" value="[% HTML.escape(row.binid) %]">
48      <input type="hidden" name="parts_id_[% loop.count %]" value="[% HTML.escape(row.parts_id) %]">
49      <input type="hidden" name="partnumber_[% loop.count %]" value="[% HTML.escape(row.partnumber) %]">
50      <input type="hidden" name="partdescription_[% loop.count %]" value="[% HTML.escape(row.partdescription) %]">
51      <input type="hidden" name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]">
52      [% IF conf_show_best_before %]
53      <input type="hidden" name="bestbefore_[% loop.count %]" value="[% HTML.escape(row.bestbefore) %]">
54      [% END %]
55      <input type="hidden" name="ean_[% loop.count %]" value="[% HTML.escape(row.ean) %]">
56      <td>[% HTML.escape(row.bindescription) %]</td>
57      <td>[% HTML.escape(row.partnumber) %]</td>
58      <td>[% HTML.escape(row.partdescription) %]</td>
59      <td>[% HTML.escape(row.chargenumber) %]</td>
60      [% IF conf_show_best_before %]
61      <td>[% HTML.escape(row.bestbefore) %]</td>
62      [% END %]
63      <td>[% HTML.escape(row.ean) %]</td>
64      <td>[% HTML.escape(row.qty) %]</td>
65      <td>
66       <input name="qty_[% loop.count %]">
67       <select name="unit_[% loop.count %]">
68        [% FOREACH unit = row.UNITS %]<option[% IF unit.selected %] selected[% END %]>[% HTML.escape(unit.name) %]</option>[% END %]
69       </select>
70      </td>
71     </tr>
72
73     [% END %]
74
75     <input type="hidden" name="rowcount" value="[% CONTENTS.size %]">
76
77     <tr><td colspan="7"><hr size="3" noshade></td></tr>
78
79    </table>
80   </p>
81
82   <p>
83    <input type="submit" class="submit" name="action" value="<translate>Continue</translate>">
84   </p>
85  </form>
86
87 </body>
88 </html>