epic-ts
[kivitendo-erp.git] / templates / webpages / am / list_warehouses.html
1 [%- USE T8 %][% USE LxERP %][% USE L %]
2 [% USE HTML %]
3 <h1>[% title %]</h1>
4
5  [% IF saved_message %]<p>[% saved_message %]</p>[% END %]
6
7  <p>
8   <table width="100%" id="warehouse_list">
9    <tr class="listheading">
10     <th align="center"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
11     <th width="70%">[% 'Description' | $T8 %]</th>
12     <th width="20%">[% 'Number of bins' | $T8 %]</th>
13     <th width="10%">[% 'Invalid' | $T8 %]</th>
14    </tr>
15
16    [% FOREACH warehouse = WAREHOUSES %]
17    <tr class="listrow[% loop.count % 2 %]" id="warehouse_id_[% warehouse.id %]">
18     <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
19     <td><a href="[% url_base %]&action=edit_warehouse&id=[% HTML.url(warehouse.id) %]">[% HTML.escape(warehouse.description) %]</a></td>
20     <td>[% HTML.escape(warehouse.number_of_bins) %]</td>
21     <td>[% IF warehouse.invalid %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
22    </tr>
23    [% END %]
24   </table>
25  </p>
26
27  <hr height="3">
28
29  <p>
30   <a href="am.pl?action=add&type=warehouse&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
31  </p>
32
33  [% L.sortable_element('#warehouse_list tbody', url => 'controller.pl?action=Warehouse/reorder', with => 'warehouse_id') %]