Tipp- und Copy-Paste-Fehler korrigiert.
[kivitendo-erp.git] / templates / webpages / payment_term / list.html
1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2
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 id="payment_term_list">
15     <thead>
16     <tr class="listheading">
17      <th align="center"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></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     </thead>
25
26     <tbody>
27     [%- FOREACH payment_term = PAYMENT_TERMS %]
28     <tr class="listrow[% loop.count % 2 %]" id="payment_term_id_[% payment_term.id %]">
29      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
30      <td>
31       <a href="[% SELF.url_for(action => 'edit', id => payment_term.id) %]">
32        [%- HTML.escape(payment_term.description) %]
33       </a>
34      </td>
35      <td>[%- HTML.escape(payment_term.description_long) %]</td>
36      <td align="right">[%- HTML.escape(payment_term.terms_netto_as_number) %]</td>
37      <td align="right">[%- HTML.escape(payment_term.terms_skonto_as_number) %]</td>
38      <td align="right">[%- HTML.escape(payment_term.percent_skonto_as_percent) %] %</td>
39     </tr>
40     [%- END %]
41     </tbody>
42    </table>
43   [%- END %]
44
45   <p>
46    <a href="[% SELF.url_for(action => 'new') %]">[%- 'Create new payment term' | $T8 %]</a>
47   </p>
48  </form>
49
50  [% L.sortable_element('#payment_term_list tbody', url => 'controller.pl?action=PaymentTerm/reorder', with => 'payment_term_id') %]
51