Per default Drag&Drop nur auf Item mit Klasse 'dragdrop' zulassen
[kivitendo-erp.git] / templates / webpages / am / list_price_factors.html
1 [%- USE T8 %][% USE L %][% USE LxERP %]
2 [% USE HTML %]
3
4 <script type="text/javascript" src="js/jquery-ui.js"></script>
5
6 <body>
7
8  [% IF MESSAGE %]<p>[% MESSAGE %]</p>[% END %]
9
10  <div class="listtop">[% title %]</div>
11
12  <p>
13   <table width="100%" id="price_factor_list">
14    <thead>
15    <tr class="listheading">
16     <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
17     <th width="80%">[% 'Description' | $T8 %]</th>
18     <th width="20%">[% 'Factor' | $T8 %]</th>
19    </tr>
20    </thead>
21
22    <tbody>
23    [% FOREACH factor = PRICE_FACTORS %]
24    <tr class="listrow[% loop.count % 2 %]" id="price_factor_id_[% factor.id %]">
25     <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
26     <td><a href="[% url_base %]&action=edit_price_factor&id=[% HTML.url(factor.id) %]">[% HTML.escape(factor.description) %]</a></td>
27     <td>[% HTML.escape(factor.factor) %]</td>
28    </tr>
29    [% END %]
30    </tbody>
31   </table>
32  </p>
33
34  <hr height="3">
35
36  <p>
37   <form method="post" action="am.pl">
38    <input type="hidden" name="type" value="price_factor">
39    <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
40
41    <input type="submit" class="submit" name="action" value="[% 'Add' | $T8 %]">
42   </form>
43  </p>
44
45  [% L.sortable_element('#price_factor_list tbody', url => 'controller.pl?action=PriceFactor/reorder', with => 'price_factor_id') %]
46
47 </body>
48 </html>