epic-ts
[kivitendo-erp.git] / templates / webpages / am / list_price_factors.html
index 0f3c013..bc2d0f5 100644 (file)
@@ -1,19 +1,15 @@
 [%- USE T8 %][% USE L %][% USE LxERP %]
 [% USE HTML %]
-
-<script type="text/javascript" src="js/jquery-ui.js"></script>
-
-<body>
+<h1>[% title %]</h1>
 
  [% IF MESSAGE %]<p>[% MESSAGE %]</p>[% END %]
 
- <div class="listtop">[% title %]</div>
 
  <p>
   <table width="100%" id="price_factor_list">
    <thead>
    <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="80%">[% 'Description' | $T8 %]</th>
     <th width="20%">[% 'Factor' | $T8 %]</th>
    </tr>
@@ -22,7 +18,7 @@
    <tbody>
    [% FOREACH factor = PRICE_FACTORS %]
    <tr class="listrow[% loop.count % 2 %]" id="price_factor_id_[% factor.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_price_factor&id=[% HTML.url(factor.id) %]">[% HTML.escape(factor.description) %]</a></td>
     <td>[% HTML.escape(factor.factor) %]</td>
    </tr>
  <hr height="3">
 
  <p>
-  <form method="post" action="am.pl">
-   <input type="hidden" name="type" value="price_factor">
-   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
-
-   <input type="submit" class="submit" name="action" value="[% 'Add' | $T8 %]">
-  </form>
+  <a href="am.pl?action=add&type=price_factor&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
  </p>
 
  [% L.sortable_element('#price_factor_list tbody', url => 'controller.pl?action=PriceFactor/reorder', with => 'price_factor_id') %]
-
-</body>
-</html>