</body> entfernt
[kivitendo-erp.git] / templates / webpages / am / list_warehouses.html
1 [%- USE T8 %][% USE LxERP %][% USE L %]
2 [% USE HTML %]
3
4 <script type="text/javascript" src="js/jquery-ui.js"></script>
5
6 <body>
7
8  [% IF saved_message %]<p>[% saved_message %]</p>[% END %]
9
10  <div class="listtop">[% title %]</div>
11
12  <p>
13   <table width="100%" id="warehouse_list">
14    <tr class="listheading">
15     <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
16     <th width="70%">[% 'Description' | $T8 %]</th>
17     <th width="20%">[% 'Number of bins' | $T8 %]</th>
18     <th width="10%">[% 'Invalid' | $T8 %]</th>
19    </tr>
20
21    [% FOREACH warehouse = WAREHOUSES %]
22    <tr class="listrow[% loop.count % 2 %]" id="warehouse_id_[% warehouse.id %]">
23     <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
24     <td><a href="[% url_base %]&action=edit_warehouse&id=[% HTML.url(warehouse.id) %]">[% HTML.escape(warehouse.description) %]</a></td>
25     <td>[% HTML.escape(warehouse.number_of_bins) %]</td>
26     <td>[% IF warehouse.invalid %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
27    </tr>
28    [% END %]
29   </table>
30  </p>
31
32  <hr height="3">
33
34  <p>
35   <form method="post" action="am.pl">
36    <input type="hidden" name="type" value="warehouse">
37
38    <input type="submit" class="submit" name="action" value="[% 'Add' | $T8 %]">
39   </form>
40  </p>
41
42  [% L.sortable_element('#warehouse_list tbody', url => 'controller.pl?action=Warehouse/reorder', with => 'warehouse_id') %]
43