1 [%- USE T8 %][% USE LxERP %][% USE L %]
4 <script type="text/javascript" src="js/jquery-ui.js"></script>
7 [% IF saved_message %]<p>[% saved_message %]</p>[% END %]
9 <div class="listtop">[% title %]</div>
12 <table width="100%" id="warehouse_list">
13 <tr class="listheading">
14 <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
15 <th width="70%">[% 'Description' | $T8 %]</th>
16 <th width="20%">[% 'Number of bins' | $T8 %]</th>
17 <th width="10%">[% 'Invalid' | $T8 %]</th>
20 [% FOREACH warehouse = WAREHOUSES %]
21 <tr class="listrow[% loop.count % 2 %]" id="warehouse_id_[% warehouse.id %]">
22 <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
23 <td><a href="[% url_base %]&action=edit_warehouse&id=[% HTML.url(warehouse.id) %]">[% HTML.escape(warehouse.description) %]</a></td>
24 <td>[% HTML.escape(warehouse.number_of_bins) %]</td>
25 <td>[% IF warehouse.invalid %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
34 <a href="am.pl?action=add&type=warehouse&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
37 [% L.sortable_element('#warehouse_list tbody', url => 'controller.pl?action=Warehouse/reorder', with => 'warehouse_id') %]