Revision e08d44fc
Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt
templates/webpages/presenter/record/record_list.html | ||
---|---|---|
1 |
<h1>[%- P.escape(title) %]</h1> |
|
2 | 1 |
[% USE L %] |
3 | 2 |
[% USE LxERP %] |
4 | 3 |
[% USE P %] |
5 | 4 |
|
6 |
<div style="padding-bottom: 15px"> |
|
7 |
<table style="width: 100%" id="record_list_[% type %]"> |
|
8 |
<thead> |
|
9 |
<tr> |
|
10 |
[%- IF edit_record_links %] |
|
11 |
<th class="listheading">[% L.checkbox_tag('record_links_delete_checkall_' _ type) %]</th> |
|
12 |
[%- END %] |
|
13 |
[%- FOREACH column = TABLE_HEADER %] |
|
14 |
<th class="listheading"[% IF column.alignment %] align="[% column.alignment %]"[% END %]>[%- P.escape(column.value) %]</th> |
|
15 |
[%- END %] |
|
16 |
</tr> |
|
17 |
</thead> |
|
18 | 5 |
|
19 |
<tbody> |
|
20 |
[%- FOREACH row = TABLE_ROWS %] |
|
21 |
<tr class="listrow[% loop.count % 2 %]"> |
|
22 |
[%- IF edit_record_links %] |
|
23 |
<td>[%- L.checkbox_tag('record_links_delete[]', 'value'=row.record_link.from_table _ '__' _ row.record_link.from_id _ '__' _ row.record_link.to_table _ '__' _ row.record_link.to_id, 'class'='record_links_delete') %]</td> |
|
24 |
[%- END %] |
|
25 |
[%- FOREACH column = row.columns %] |
|
26 |
<td[% IF column.alignment %] align="[% column.alignment %]"[% END %]> |
|
27 |
[%- IF column.link %]<a href="[% column.link %]">[%- END %] |
|
28 |
[%- P.escape(column.value) %] |
|
29 |
[%- IF column.link %]</a>[%- END %] |
|
30 |
</td> |
|
31 |
[%- END %] |
|
32 |
</tr> |
|
33 |
[%- END %] |
|
34 |
</tbody> |
|
35 |
</table> |
|
6 |
<div class="wrapper"> |
|
7 |
<table class="tbl-list wi-moderate" id="record_list_[% type %]"> |
|
8 |
<caption>[% P.escape(title) %]</caption> |
|
9 |
<thead> |
|
10 |
<tr> |
|
11 |
[% IF edit_record_links %] |
|
12 |
<th>[% L.checkbox_tag('record_links_delete_checkall_' _ type) %]</th> |
|
13 |
[% END %] |
|
14 |
[% FOREACH column = TABLE_HEADER %] |
|
15 |
<th[% IF column.alignment %] class="[% column.alignment %]"[% END %]>[% P.escape(column.value) %]</th> |
|
16 |
[% END %] |
|
17 |
</tr> |
|
18 |
</thead> |
|
19 |
<tbody> |
|
20 |
[% FOREACH row = TABLE_ROWS %] |
|
21 |
<tr class="listrow[% loop.count % 2 %]"> |
|
22 |
[% IF edit_record_links %] |
|
23 |
<td>[% L.checkbox_tag('record_links_delete[]', 'value'=row.record_link.from_table _ '__' _ row.record_link.from_id _ '__' _ row.record_link.to_table _ '__' _ row.record_link.to_id, 'class'='record_links_delete') %]</td> |
|
24 |
[% END %] |
|
25 |
[% FOREACH column = row.columns %] |
|
26 |
<td[% IF column.alignment %] class="[% column.alignment %]"[% END %]> |
|
27 |
[% IF column.link %]<a href="[% column.link %]">[% END %] |
|
28 |
[% P.escape(column.value) %] |
|
29 |
[% IF column.link %]</a>[% END %] |
|
30 |
</td> |
|
31 |
[% END %] |
|
32 |
</tr> |
|
33 |
[% END %] |
|
34 |
</tbody> |
|
35 |
</table> |
|
36 | 36 |
</div> |
37 | 37 |
|
38 | 38 |
[% IF edit_record_links %] |
39 |
<script type="text/javascript"> |
|
40 |
$('#record_links_delete_checkall_[% type %]').checkall("#record_list_[% type %] tbody :checkbox"); |
|
41 |
</script> |
|
42 |
[%- END %] |
|
39 |
<script type="text/javascript"> |
|
40 |
$('#record_links_delete_checkall_[% type %]').checkall("#record_list_[% type %] tbody :checkbox"); |
|
41 |
</script> |
|
42 |
[% END %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/presenter/record/record_list.html