Revision 2751e01d
Von Werner Hahn vor fast 2 Jahren hinzugefügt
templates/design40_webpages/custom_data_export/empty_result_set.html | ||
---|---|---|
1 |
[% USE HTML %][% USE L %][% USE LxERP %] |
|
2 |
|
|
3 |
<h1>[% FORM.title %]</h1> |
|
4 |
<div class="wrapper"> |
|
5 |
[%- INCLUDE 'common/flash.html' %] |
|
6 |
|
|
7 |
<p> |
|
8 |
[% LxERP.t8("The query did not return any data.") %] |
|
9 |
</p> |
|
10 |
</div> |
templates/design40_webpages/custom_data_export/export.html | ||
---|---|---|
1 |
[% USE HTML %][% USE L %][% USE LxERP %] |
|
2 |
|
|
3 |
<h1>[% FORM.title %]</h1> |
|
4 |
<div class="wrapper"> |
|
5 |
[%- INCLUDE 'common/flash.html' %] |
|
6 |
|
|
7 |
<form method="post" action="controller.pl" id="form"> |
|
8 |
[% L.hidden_tag("id", SELF.query.id) %] |
|
9 |
[% L.hidden_tag("format", "csv") %] |
|
10 |
|
|
11 |
[% IF !SELF.parameters.size %] |
|
12 |
<p> |
|
13 |
[% LxERP.t8("The SQL query does not contain any parameter that need to be configured.") %] |
|
14 |
</p> |
|
15 |
|
|
16 |
[% ELSE %] |
|
17 |
|
|
18 |
<table class="tbl-horizontal wi-moderate"> |
|
19 |
<thead> |
|
20 |
<tr> |
|
21 |
<th>[% LxERP.t8("Variable Name") %]</th> |
|
22 |
<th>[% LxERP.t8("Type") %]</th> |
|
23 |
<th>[% LxERP.t8("Value") %]</th> |
|
24 |
<th>[% LxERP.t8("Description") %]</th> |
|
25 |
</tr> |
|
26 |
</thead> |
|
27 |
|
|
28 |
<tbody> |
|
29 |
[% FOREACH parameter = SELF.parameters %] |
|
30 |
<tr> |
|
31 |
<td> |
|
32 |
[% HTML.escape(parameter.name) %] |
|
33 |
</td> |
|
34 |
|
|
35 |
[% SET value = parameter.calculate_default_value %] |
|
36 |
|
|
37 |
[% IF parameter.parameter_type == "number" %] |
|
38 |
<td>[% LxERP.t8("Number") %]</td> |
|
39 |
<td>[% L.input_tag("parameters." _ parameter.name, value, style="width: 300px", "data-validate"="required") %]</td> |
|
40 |
|
|
41 |
[% ELSIF parameter.parameter_type == "date" %] |
|
42 |
<td>[% LxERP.t8("Date") %]</td> |
|
43 |
<td>[% L.date_tag("parameters." _ parameter.name, value, style="width: 300px", "data-validate"="required") %]</td> |
|
44 |
|
|
45 |
[% ELSE %] |
|
46 |
<td>[% LxERP.t8("Text") %]</td> |
|
47 |
<td>[% L.input_tag("parameters." _ parameter.name, value, style="width: 300px", "data-validate"="required") %]</td> |
|
48 |
[% END %] |
|
49 |
|
|
50 |
<td>[% HTML.escape(parameter.description) %]</td> |
|
51 |
</tr> |
|
52 |
[% END %] |
|
53 |
</tbody> |
|
54 |
[% END %] |
|
55 |
</form> |
|
56 |
</div> |
templates/design40_webpages/custom_data_export/list.html | ||
---|---|---|
1 |
[% USE HTML %][% USE L %][% USE LxERP %] |
|
2 |
|
|
3 |
<h1>[% FORM.title %]</h1> |
|
4 |
<div class="wrapper"> |
|
5 |
[%- INCLUDE 'common/flash.html' %] |
|
6 |
|
|
7 |
[% IF !SELF.queries.size %] |
|
8 |
<p> |
|
9 |
[%- LxERP.t8("You do not have access to any custom data export.") %] |
|
10 |
</p> |
|
11 |
|
|
12 |
[%- ELSE %] |
|
13 |
<table class="tbl-list wi-moderate"> |
|
14 |
<thead> |
|
15 |
<tr> |
|
16 |
<th>[% LxERP.t8("Name") %]</th> |
|
17 |
<th>[% LxERP.t8("Description") %]</th> |
|
18 |
</tr> |
|
19 |
</thead> |
|
20 |
|
|
21 |
<tbody> |
|
22 |
[%- FOREACH query = SELF.queries %] |
|
23 |
<tr> |
|
24 |
<td>[% L.link(SELF.url_for(action="export", id=query.id), query.name) %]</td> |
|
25 |
<td>[% IF query.description %][% L.link(SELF.url_for(action="export", id=query.id), query.description) %][% END %]</td> |
|
26 |
</tr> |
|
27 |
[%- END %] |
|
28 |
</tbody> |
|
29 |
</table> |
|
30 |
[%- END %] |
|
31 |
</div> |
Auch abrufbar als: Unified diff
Design 4.0: Benutzerdefinierter Datenexport kopiert/angepasst