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