Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 38a6bf54

Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 38a6bf54101ccf4a8c9bf3ef1b018c618e69b524
  • Vorgänger 8847b39a
  • Nachfolger 76cd55e1

Neues Design 2019 Standard-Code templates/webpages/payment_term/list.html

Unterschiede anzeigen:

templates/webpages/payment_term/list.html
1 1
[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2
 <h1>[% FORM.title %]</h1>
2
<h1>[% FORM.title %]</h1>
3 3

  
4 4
[%- INCLUDE 'common/flash.html' %]
5 5

  
6
 <form method="post" action="controller.pl">
7
  [% IF !PAYMENT_TERMS.size %]
8
   <p>
6
<form method="post" action="controller.pl">
7
[% IF !PAYMENT_TERMS.size %]
8
  <p>
9 9
    [%- 'No payment term has been created yet.' | $T8 %]
10
   </p>
10
  </p>
11 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 (quotations & orders)' | $T8 %]</th>
19
     <th>[%- 'Long Description (invoices)' | $T8 %]</th>
20
     <th>[% 'Automatic date calculation' | $T8 %]</th>
21
     <th align="right">[%- 'Netto Terms' | $T8 %]</th>
22
     <th align="right">[%- 'Skonto Terms' | $T8 %]</th>
23
     <th align="right">[%- 'Skonto' | $T8 %]</th>
24
     <th align="right">[%- 'Obsolete' | $T8 %]</th>
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>
25 38
    </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>[%- HTML.escape(payment_term.description_long_invoice) %]</td>
39
     <td>[% IF payment_term.auto_calculation %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %]</td>
40
     <td align="right">[%- HTML.escape(payment_term.terms_netto_as_number) %]</td>
41
     <td align="right">[%- HTML.escape(payment_term.terms_skonto_as_number) %]</td>
42
     <td align="right">[%- HTML.escape(payment_term.percent_skonto_as_percent) %] %</td>
43
     <td align="right">[%- HTML.escape(payment_term.obsolete) %]</td>
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>
44 52
    </tr>
45
    [%- END %]
46
    </tbody>
47
   </table>
48
  [%- END %]
49
 </form>
53
    [%- END %] 
54
  </tbody>
55
</table>
56
</div>
57
[%- END %]
58
</form>
50 59

  
51 60
 [% L.sortable_element('#payment_term_list tbody', url => 'controller.pl?action=PaymentTerm/reorder', with => 'payment_term_id') %]

Auch abrufbar als: Unified diff