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