661e2da5737efdce016d487c2a94edfc3b29dd9c
[kivitendo-erp.git] / templates / webpages / delivery_term / list.html
1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2
3  <div class="listtop">[% FORM.title %]</div>
4
5 [%- INCLUDE 'common/flash.html' %]
6
7  <form method="post" action="controller.pl">
8   [% IF !DELIVERY_TERMS.size %]
9    <p>
10     [%- 'No delivery term has been created yet.' | $T8 %]
11    </p>
12
13   [%- ELSE %]
14    <table id="delivery_term_list">
15     <thead>
16     <tr class="listheading">
17      <th align="center"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
18      <th>[%- 'Description' | $T8 %]</th>
19      <th>[%- 'Long Description' | $T8 %]</th>
20     </tr>
21     </thead>
22
23     <tbody>
24     [%- FOREACH delivery_term = DELIVERY_TERMS %]
25     <tr class="listrow[% loop.count % 2 %]" id="delivery_term_id_[% delivery_term.id %]">
26      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
27      <td>
28       <a href="[% SELF.url_for(action => 'edit', id => delivery_term.id) %]">
29        [%- HTML.escape(delivery_term.description) %]
30       </a>
31      </td>
32      <td>[%- HTML.escape(delivery_term.description_long) %]</td>
33     </tr>
34     [%- END %]
35     </tbody>
36    </table>
37   [%- END %]
38
39   <p>
40    <a href="[% SELF.url_for(action => 'new') %]">[%- 'Create new delivery term' | $T8 %]</a>
41   </p>
42  </form>
43
44  [% L.sortable_element('#delivery_term_list tbody', url => 'controller.pl?action=DeliveryTerm/reorder', with => 'delivery_term_id') %]
45