]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/payment_term/list.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / payment_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">
7 [% IF !PAYMENT_TERMS.size %]
8   <p>
9     [%- 'No payment term has been created yet.' | $T8 %]
10   </p>
11
12 [%- ELSE %]
13  
14 <div class="wrapper">
15 <table id="payment_term_list" class="tbl-list wi-moderate">
16   <colgroup> 
17     <col class="wi-smallest"> 
18     <col class="wi-wide"> 
19     <col class="wi-wide"> 
20     <col class="wi-wide"> 
21     <col class="wi-small"> 
22     <col class="wi-small"> 
23     <col class="wi-small"> 
24     <col class="wi-verysmall"> 
25     <col class="wi-verysmall"> 
26   </colgroup> 
27   <thead>
28     <tr>
29       <th> <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"> </th>
30       <th> [%- 'Description' | $T8 %] </th>
31       <th> [%- 'Long Description (quotations & orders)' | $T8 %] </th>
32       <th> [%- 'Long Description (invoices)' | $T8 %] </th>
33       <th class="center"> [% 'Automatic date calculation' | $T8 %] </th>
34       <th class="center"> [%- 'Netto Terms' | $T8 %] </th>
35       <th class="center"> [%- 'Skonto Terms' | $T8 %] </th>
36       <th class="center"> [%- 'Skonto' | $T8 %] </th>
37       <th class="center"> [%- 'Obsolete' | $T8 %] </th>
38     </tr>
39   </thead>
40   <tbody>
41     [%- FOREACH payment_term = PAYMENT_TERMS %] 
42     <tr id="payment_term_id_[% payment_term.id %]">
43       <td class="dragdrop"> <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"> </td>
44       <td> <a href="[% SELF.url_for(action => 'edit', id => payment_term.id) %]"> [%- HTML.escape(payment_term.description) %] </a> </td>
45       <td> [%- HTML.escape(payment_term.description_long) %] </td>
46       <td> [%- HTML.escape(payment_term.description_long_invoice) %] </td>
47       <td class="center"> [% IF payment_term.auto_calculation %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %] </td>
48       <td class="center"> [%- HTML.escape(payment_term.terms_netto_as_number) %] </td>
49       <td class="center"> [%- HTML.escape(payment_term.terms_skonto_as_number) %] </td>
50       <td class="center"> [%- HTML.escape(payment_term.percent_skonto_as_percent) %] % </td>
51       <td class="center"> [%- HTML.escape(payment_term.obsolete) %] </td>
52     </tr>
53     [%- END %] 
54   </tbody>
55 </table>
56 </div>
57 [%- END %]
58 </form>
59
60  [% L.sortable_element('#payment_term_list tbody', url => 'controller.pl?action=PaymentTerm/reorder', with => 'payment_term_id') %]