e26e07f838c146a8a611ec4ff52dfbe5cb522be3
[kivitendo-erp.git] / templates / webpages / payment_term / list.html
1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2 <body>
3  <div class="listtop">[% FORM.title %]</div>
4
5 [%- INCLUDE 'common/flash.html' %]
6
7  <form method="post" action="controller.pl">
8   [% IF !PAYMENT_TERMS.size %]
9    <p>
10     [%- 'No payment term has been created yet.' | $T8 %]
11    </p>
12
13   [%- ELSE %]
14    <table>
15     <tr class="listheading">
16      <th align="center"><img src="image/up.png"></th>
17      <th align="center"><img src="image/down.png"></th>
18      <th>[%- 'Description' | $T8 %]</th>
19      <th>[%- 'Long Description' | $T8 %]</th>
20      <th align="right">[%- 'Netto Terms' | $T8 %]</th>
21      <th align="right">[%- 'Skonto Terms' | $T8 %]</th>
22      <th align="right">[%- 'Skonto' | $T8 %]</th>
23     </tr>
24
25     [%- FOREACH payment_term = PAYMENT_TERMS %]
26     <tr class="listrow[% loop.count % 2 %]">
27      <td align="center">
28       [%- UNLESS loop.first %]
29        <a href="[% SELF.url_for(action => 'move_up', id => payment_term.id) %]"><img src="image/up.png" border="0"></a>
30       [%- END %]
31      </td>
32      <td align="center">
33       [%- UNLESS loop.last %]
34        <a href="[% SELF.url_for(action => 'move_down', id => payment_term.id) %]"><img src="image/down.png" border="0"></a>
35       [%- END %]
36      </td>
37      <td>
38       <a href="[% SELF.url_for(action => 'edit', id => payment_term.id) %]">
39        [%- HTML.escape(payment_term.description) %]
40       </a>
41      </td>
42      <td>[%- HTML.escape(payment_term.description_long) %]</td>
43      <td align="right">[%- HTML.escape(payment_term.terms_netto_as_number) %]</td>
44      <td align="right">[%- HTML.escape(payment_term.terms_skonto_as_number) %]</td>
45      <td align="right">[%- HTML.escape(payment_term.percent_skonto_as_number) %] %</td>
46     </tr>
47     [%- END %]
48    </table>
49   [%- END %]
50
51   <p>
52    <a href="[% SELF.url_for(action => 'new') %]">[%- 'Create new payment term' | $T8 %]</a>
53   </p>
54  </form>
55
56 </body>
57 </html>