1 [% USE HTML %][% USE L %][% USE LxERP %]
3 <h1>[% FORM.title %]</h1>
5 [%- INCLUDE 'common/flash.html' %]
7 <form method="post" action="controller.pl" id="form">
8 [% L.hidden_tag("id", SELF.query.id) %]
9 [% L.hidden_tag("format", "csv") %]
11 [% IF !SELF.parameters.size %]
13 [% LxERP.t8("The SQL query does not contain any parameter that need to be configured.") %]
20 <tr class="listheading">
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>
29 [% FOREACH parameter = SELF.parameters %]
32 [% HTML.escape(parameter.name) %]
35 [% SET value = parameter.calculate_default_value %]
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>
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>
46 <td>[% LxERP.t8("Text") %]</td>
47 <td>[% L.input_tag("parameters." _ parameter.name, value, style="width: 300px", "data-validate"="required") %]</td>
50 <td>[% HTML.escape(parameter.description) %]</td>