epic-ts
[kivitendo-erp.git] / templates / webpages / am / list_warehouses.html
index b791e7d..d6735d2 100644 (file)
@@ -1,18 +1,13 @@
 [%- USE T8 %][% USE LxERP %][% USE L %]
 [% USE HTML %]
-
-<script type="text/javascript" src="js/jquery-ui.js"></script>
-
-<body>
+<h1>[% title %]</h1>
 
  [% IF saved_message %]<p>[% saved_message %]</p>[% END %]
 
- <div class="listtop">[% title %]</div>
-
  <p>
   <table width="100%" id="warehouse_list">
    <tr class="listheading">
-    <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
+    <th align="center"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
     <th width="70%">[% 'Description' | $T8 %]</th>
     <th width="20%">[% 'Number of bins' | $T8 %]</th>
     <th width="10%">[% 'Invalid' | $T8 %]</th>
@@ -20,7 +15,7 @@
 
    [% FOREACH warehouse = WAREHOUSES %]
    <tr class="listrow[% loop.count % 2 %]" id="warehouse_id_[% warehouse.id %]">
-    <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
+    <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
     <td><a href="[% url_base %]&action=edit_warehouse&id=[% HTML.url(warehouse.id) %]">[% HTML.escape(warehouse.description) %]</a></td>
     <td>[% HTML.escape(warehouse.number_of_bins) %]</td>
     <td>[% IF warehouse.invalid %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
  <hr height="3">
 
  <p>
-  <form method="post" action="am.pl">
-   <input type="hidden" name="type" value="warehouse">
-
-   <input type="submit" class="submit" name="action" value="[% 'Add' | $T8 %]">
-  </form>
+  <a href="am.pl?action=add&type=warehouse&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
  </p>
 
- [% L.sortable_element('#warehouse_list tbody', 'url' => 'controller.pl?action=Warehouse/reorder', 'with' => 'warehouse_id', handle => '.dragdrop') %]
-
-</body>
-</html>
+ [% L.sortable_element('#warehouse_list tbody', url => 'controller.pl?action=Warehouse/reorder', with => 'warehouse_id') %]