Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
[kivitendo-erp.git] / templates / webpages / payment_term / list.html
1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2
3 <script type="text/javascript" src="js/jquery-ui.js"></script>
4
5  <div class="listtop">[% FORM.title %]</div>
6
7 [%- INCLUDE 'common/flash.html' %]
8
9  <form method="post" action="controller.pl">
10   [% IF !PAYMENT_TERMS.size %]
11    <p>
12     [%- 'No payment term has been created yet.' | $T8 %]
13    </p>
14
15   [%- ELSE %]
16    <table id="payment_term_list">
17     <thead>
18     <tr class="listheading">
19      <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
20      <th>[%- 'Description' | $T8 %]</th>
21      <th>[%- 'Long Description' | $T8 %]</th>
22      <th align="right">[%- 'Netto Terms' | $T8 %]</th>
23      <th align="right">[%- 'Skonto Terms' | $T8 %]</th>
24      <th align="right">[%- 'Skonto' | $T8 %]</th>
25     </tr>
26     </thead>
27
28     <tbody>
29     [%- FOREACH payment_term = PAYMENT_TERMS %]
30     <tr class="listrow[% loop.count % 2 %]" id="payment_term_id_[% payment_term.id %]">
31      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
32      <td>
33       <a href="[% SELF.url_for(action => 'edit', id => payment_term.id) %]">
34        [%- HTML.escape(payment_term.description) %]
35       </a>
36      </td>
37      <td>[%- HTML.escape(payment_term.description_long) %]</td>
38      <td align="right">[%- HTML.escape(payment_term.terms_netto_as_number) %]</td>
39      <td align="right">[%- HTML.escape(payment_term.terms_skonto_as_number) %]</td>
40      <td align="right">[%- HTML.escape(payment_term.percent_skonto_as_percent) %] %</td>
41     </tr>
42     [%- END %]
43     </tbody>
44    </table>
45   [%- END %]
46
47   <p>
48    <a href="[% SELF.url_for(action => 'new') %]">[%- 'Create new payment term' | $T8 %]</a>
49   </p>
50  </form>
51
52  [% L.sortable_element('#payment_term_list tbody', url => 'controller.pl?action=PaymentTerm/reorder', with => 'payment_term_id') %]
53