Revision bdf885d0
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/record_links/add_list.html | ||
---|---|---|
1 |
[%- IF !OBJECTS.size %] |
|
2 |
<p class="message_hint">[% 'No data was found.' | $T8 %]</p> |
|
3 |
[%- ELSE %] |
|
4 |
<table width="100%"> |
|
5 |
<tr class="listheading"> |
|
6 |
<th>[% L.checkbox_tag('record_links_check_all') %]</th> |
|
7 |
<th>[% IF vc == 'customer' %][%- LxERP.t8("Customer") %][%- ELSE %][%- LxERP.t8("Vendor") %][%- END %]</th> |
|
8 |
<th>[%- LxERP.t8("Number") %]</th> |
|
9 |
[% IF date_column %] |
|
10 |
<th>[%- LxERP.t8("Date") %]</th> |
|
11 |
[% END %] |
|
12 |
<th>[% HTML.escape(description_title) %]</th> |
|
13 |
[% IF project_column %] |
|
14 |
<th>[%- LxERP.t8("Project") %]</th> |
|
15 |
[% END %] |
|
16 |
</tr> |
|
17 |
|
|
18 |
[%- FOREACH object = OBJECTS %] |
|
19 |
<tr class="listrow[% loop.count % 2 %]"> |
|
20 |
<td>[% L.checkbox_tag('link_id[]', value=object.id) %]</td> |
|
21 |
<td>[%- HTML.escape(object.$vc.name) %]</td> |
|
22 |
<td>[%- HTML.escape(object.$number_column) %]</td> |
|
23 |
[% IF date_column %] |
|
24 |
<td>[%- HTML.escape(object.$date_column.to_kivitendo) %]</td> |
|
25 |
[% END %] |
|
26 |
<td>[%- HTML.escape(object.$description_column) %]</td> |
|
27 |
[% IF project_column %] |
|
28 |
<td>[%- object.$project_column.presenter.project(no_link=1) %]</td> |
|
29 |
[% END %] |
|
30 |
</tr> |
|
31 |
[%- END %] |
|
32 |
</table> |
|
33 |
|
|
34 |
<script type="text/javascript"> |
|
35 |
<!-- |
|
36 |
$(function() { |
|
37 |
$('#record_links_check_all').checkall('INPUT[name="link_id[]"]'); |
|
38 |
}); |
|
39 |
--> |
|
40 |
</script> |
|
41 | 1 |
[% USE T8 %] |
42 | 2 |
[% USE HTML %] |
43 | 3 |
[% USE LxERP %] |
44 | 4 |
[% USE P %] |
45 | 5 |
[% USE L %] |
46 | 6 |
|
7 |
[% IF !OBJECTS.size %] |
|
8 |
|
|
9 |
<p class="message message_hint">[% 'No data was found.' | $T8 %]</p> |
|
10 |
|
|
11 |
[% ELSE %] |
|
12 |
|
|
13 |
<table class="tbl-list wi-moderate"> |
|
14 |
<thead> |
|
15 |
<tr> |
|
16 |
<th>[% L.checkbox_tag('record_links_check_all') %]</th> |
|
17 |
<th>[% IF vc == 'customer' %][% LxERP.t8("Customer") %][% ELSE %][% LxERP.t8("Vendor") %][% END %]</th> |
|
18 |
<th>[% LxERP.t8("Number") %]</th> |
|
19 |
[% IF date_column %] |
|
20 |
<th>[% LxERP.t8("Date") %]</th> |
|
21 |
[% END %] |
|
22 |
<th>[% HTML.escape(description_title) %]</th> |
|
23 |
[% IF project_column %] |
|
24 |
<th>[% LxERP.t8("Project") %]</th> |
|
25 |
[% END %] |
|
26 |
</tr> |
|
27 |
</thead> |
|
28 |
<tbody> |
|
29 |
[% FOREACH object = OBJECTS %] |
|
30 |
<tr> |
|
31 |
<td>[% L.checkbox_tag('link_id[]', value=object.id) %]</td> |
|
32 |
<td>[% HTML.escape(object.$vc.name) %]</td> |
|
33 |
<td>[% HTML.escape(object.$number_column) %]</td> |
|
34 |
[% IF date_column %] |
|
35 |
<td>[% HTML.escape(object.$date_column.to_kivitendo) %]</td> |
|
36 |
[% END %] |
|
37 |
<td>[% HTML.escape(object.$description_column) %]</td> |
|
38 |
[% IF project_column %] |
|
39 |
<td>[% object.$project_column.presenter.project(no_link=1) %]</td> |
|
40 |
[% END %] |
|
41 |
</tr> |
|
42 |
[% END %] |
|
43 |
</tbody> |
|
44 |
</table> |
|
45 |
|
|
46 |
<script type="text/javascript"><!-- |
|
47 |
|
|
48 |
$(function() { |
|
49 |
$('#record_links_check_all').checkall('INPUT[name="link_id[]"]'); |
|
50 |
}); |
|
51 |
|
|
52 |
--></script> |
|
53 |
|
|
54 |
[% END %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/record_links/add_list.html