Layout: title Ausgabe normalisieren
[kivitendo-erp.git] / templates / 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    <table id="payment_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      <th align="right">[%- 'Netto Terms' | $T8 %]</th>
20      <th align="right">[%- 'Skonto Terms' | $T8 %]</th>
21      <th align="right">[%- 'Skonto' | $T8 %]</th>
22     </tr>
23     </thead>
24
25     <tbody>
26     [%- FOREACH payment_term = PAYMENT_TERMS %]
27     <tr class="listrow[% loop.count % 2 %]" id="payment_term_id_[% payment_term.id %]">
28      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
29      <td>
30       <a href="[% SELF.url_for(action => 'edit', id => payment_term.id) %]">
31        [%- HTML.escape(payment_term.description) %]
32       </a>
33      </td>
34      <td>[%- HTML.escape(payment_term.description_long) %]</td>
35      <td align="right">[%- HTML.escape(payment_term.terms_netto_as_number) %]</td>
36      <td align="right">[%- HTML.escape(payment_term.terms_skonto_as_number) %]</td>
37      <td align="right">[%- HTML.escape(payment_term.percent_skonto_as_percent) %] %</td>
38     </tr>
39     [%- END %]
40     </tbody>
41    </table>
42   [%- END %]
43
44   <p>
45    <a href="[% SELF.url_for(action => 'new') %]">[%- 'Create new payment term' | $T8 %]</a>
46   </p>
47  </form>
48
49  [% L.sortable_element('#payment_term_list tbody', url => 'controller.pl?action=PaymentTerm/reorder', with => 'payment_term_id') %]
50