Revision 4360eabe
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/cp/invoices.html | ||
---|---|---|
1 |
<table width=100%> |
|
2 |
<tr> |
|
3 |
<th class=listheading colspan="7">[% 'Invoices' | $T8 %]</th> |
|
4 |
</tr> |
|
5 |
<tr> |
|
6 |
<th nowrap class=listheading>[% 'Row number' | $T8 %]</th> |
|
7 |
<th nowrap class=listheading>[% 'Invoice' | $T8 %]</th> |
|
8 |
<th nowrap class=listheading width="15%">[% 'Date' | $T8 %]</th> |
|
9 |
<th nowrap class=listheading width="15%">[% 'Amount' | $T8 %]</th> |
|
10 |
<th nowrap class=listheading width="15%">[% 'Due' | $T8 %]</th> |
|
11 |
<th nowrap class=listheading width="10%">[% 'Select' | $T8 %]</th> |
|
12 |
<th nowrap class=listheading width="15%">[% 'Amount' | $T8 %]</th> |
|
13 |
</tr> |
|
14 |
[%- FOREACH row = invoices %] |
|
15 |
<tr class="listrow[% loop.count % 2 %]"> |
|
16 |
<td>[% loop.count %]</td> |
|
17 |
<td>[% row.invnumber | html %][% L.hidden_tag('invnumber_' _ loop.count, row.invnumber); L.hidden_tag('id_' _ loop.count, row.id) %]</td> |
|
18 |
<td>[% row.transdate | html %][% L.hidden_tag('transdate_' _ loop.count, row.transdate) %]</td> |
|
19 |
<td class="numeric">[% LxERP.format_amount(row.amount, 2) %][% L.hidden_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %]</td> |
|
20 |
<td class="numeric">[% LxERP.format_amount(row.due, 2) %][% L.hidden_tag('due_' _ loop.count, LxERP.format_amount(row.due, 2)) %]</td> |
|
21 |
<td align="center">[% L.checkbox_tag('checked_' _ loop.count, checked=row.checked) %]</td> |
|
22 |
<td class="numeric">[% L.input_tag('paid_' _ loop.count, LxERP.format_amount(row.paid, 2), size=10) %]</td> |
|
23 |
</tr> |
|
24 |
[%- END %] |
|
25 |
<tr class='tisttotal'> |
|
26 |
<td class="listtotal"> </td> |
|
27 |
<td class="listtotal"> </td> |
|
28 |
<td class="listtotal"> </td> |
|
29 |
<td class="listtotal" align="right">[% LxERP.format_amount(totals.amount, 2) %]</td> |
|
30 |
<td class="listtotal" align="right">[% LxERP.format_amount(totals.due, 2) %]</td> |
|
31 |
<td class="listtotal"> </td> |
|
32 |
<td class="listtotal" align="right">[% LxERP.format_amount(totals.paid, 2) %]</td> |
|
33 |
</tr> |
|
34 | 1 |
[% USE T8 %] |
35 | 2 |
[% USE HTML %] |
36 | 3 |
[% USE L %] |
37 | 4 |
[% USE LxERP %] |
38 | 5 |
|
6 |
<div class="wrapper"> |
|
7 |
<table class="tbl-list wi-moderate"> |
|
8 |
<caption>[% 'Invoices' | $T8 %]</caption> |
|
9 |
<thead> |
|
10 |
<tr> |
|
11 |
<th>[% 'Row number' | $T8 %]</th> |
|
12 |
<th>[% 'Invoice' | $T8 %]</th> |
|
13 |
<th>[% 'Date' | $T8 %]</th> |
|
14 |
<th>[% 'Amount' | $T8 %]</th> |
|
15 |
<th>[% 'Due' | $T8 %]</th> |
|
16 |
<th>[% 'Select' | $T8 %]</th> |
|
17 |
<th>[% 'Amount' | $T8 %]</th> |
|
18 |
</tr> |
|
19 |
</thead> |
|
20 |
<tbody> |
|
21 |
[% FOREACH row = invoices %] |
|
22 |
<tr> |
|
23 |
<td>[% loop.count %]</td> |
|
24 |
<td>[% row.invnumber | html %][% L.hidden_tag('invnumber_' _ loop.count, row.invnumber); L.hidden_tag('id_' _ loop.count, row.id) %]</td> |
|
25 |
<td>[% row.transdate | html %][% L.hidden_tag('transdate_' _ loop.count, row.transdate) %]</td> |
|
26 |
<td class="numeric">[% LxERP.format_amount(row.amount, 2) %][% L.hidden_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %]</td> |
|
27 |
<td class="numeric">[% LxERP.format_amount(row.due, 2) %][% L.hidden_tag('due_' _ loop.count, LxERP.format_amount(row.due, 2)) %]</td> |
|
28 |
<td>[% L.checkbox_tag('checked_' _ loop.count, checked=row.checked) %]</td> |
|
29 |
<td class="numeric">[% L.input_tag('paid_' _ loop.count, LxERP.format_amount(row.paid, 2), size=10) %]</td> |
|
30 |
</tr> |
|
31 |
[% END %] |
|
32 |
</tbody> |
|
33 |
<tfoot> |
|
34 |
<tr> |
|
35 |
<td></td> |
|
36 |
<td></td> |
|
37 |
<td></td> |
|
38 |
<td class="numeric">[% LxERP.format_amount(totals.amount, 2) %]</td> |
|
39 |
<td class="numeric">[% LxERP.format_amount(totals.due, 2) %]</td> |
|
40 |
<td></td> |
|
41 |
<td class="numeric">[% LxERP.format_amount(totals.paid, 2) %]</td> |
|
42 |
</tr> |
|
43 |
</tfoot> |
|
39 | 44 |
</table> |
45 |
</div> |
|
46 |
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/cp/