1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2 <h1>[% FORM.title %]</h1>
4 [%- INCLUDE 'common/flash.html' %]
6 <form method="post" action="controller.pl" id="form">
7 [% IF !DELIVERY_TERMS.size %]
9 [%- 'No delivery term has been created yet.' | $T8 %]
13 <table id="delivery_term_list">
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 <th>[%- 'Obsolete' | $T8 %]</th>
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>
28 <a href="[% SELF.url_for(action => 'edit', id => delivery_term.id) %]">
29 [%- HTML.escape(delivery_term.description) %]
32 <td>[%- HTML.escape(delivery_term.description_long) %]</td>
33 <td>[% IF delivery_term.obsolete %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %]</td>
41 [% L.sortable_element('#delivery_term_list tbody', url => 'controller.pl?action=DeliveryTerm/reorder', with => 'delivery_term_id') %]