Revision 8cc5dbe1
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
templates/webpages/common/render_cvar_input.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- USE L %] |
|
4 |
[%- USE LxERP %] |
|
5 |
|
|
6 |
[%- SET var_name = HTML.escape(cvar_name_prefix) _ HTML.escape(var.config.name) _ HTML.escape(cvar_name_postfix) %] |
|
7 |
|
|
8 |
[%- IF ( hide_non_editable && !var.config.is_flag('editable') ) %] |
|
9 |
[% L.hidden_tag(var_name, var.value) %] |
|
10 |
[%- ELSIF ( !var.is_valid ) %] |
|
11 |
[%- IF ( show_disabled_message ) %] |
|
12 |
[% 'Element disabled' | $T8 %] |
|
13 |
[%- END %] |
|
14 |
[%- ELSIF ( var.config .type == 'bool' ) %] |
|
15 |
[% L.checkbox_tag(var_name, checked = var.value) %] |
|
16 |
[%- ELSIF ( var.config .type == 'textfield' ) %] |
|
17 |
[% L.textarea_tag(var_name, var.value, cols = var.config.processed_options.WIDTH, rows = var.config.processed_options.HEIGHT) %] |
|
18 |
[%- ELSIF ( var.config.type == 'date' ) %] |
|
19 |
[% L.date_tag(var_name, var.value) %] |
|
20 |
[%- ELSIF ( var.config.type == 'timestamp' ) %] |
|
21 |
[% L.input_tag(var_name, var.value) %] |
|
22 |
[%- ELSIF ( var.config.type == 'customer' ) %] |
|
23 |
[% L.customer_picker(var_name, var.value) %] |
|
24 |
[%- ELSIF ( var.config.type == 'vendor' ) %] |
|
25 |
[% L.vendor_selector(var_name, var.value) %] |
|
26 |
[%- ELSIF ( var.config.type == 'part' ) %] |
|
27 |
[% L.part_selector(var_name, var.value) %] |
|
28 |
[%- ELSIF ( var.config.type == 'select' ) %] |
|
29 |
[% L.select_tag(var_name, var.config.processed_options, default = var.value) %] |
|
30 |
[%- ELSIF ( var.config.type == 'number' ) %] |
|
31 |
[%- L.input_tag(var_name, LxERP.format_amount(var.value, -2)) %] |
|
32 |
[%- ELSE %] |
|
33 |
[% L.input_tag(var_name, var.value, maxlength = var.config.processed_options.MAXLENGTH) %] |
|
34 |
[%- END %] |
templates/webpages/customer_vendor/render_cvar_input.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- USE L %] |
|
4 |
[%- USE LxERP %] |
|
5 |
|
|
6 |
[%- SET var_name = HTML.escape(cvar_name_prefix) _ HTML.escape(var.config.name) _ HTML.escape(cvar_name_postfix) %] |
|
7 |
|
|
8 |
[%- IF ( hide_non_editable && !var.config.is_flag('editable') ) %] |
|
9 |
[% L.hidden_tag(var_name, var.value) %] |
|
10 |
[%- ELSIF ( !var.is_valid ) %] |
|
11 |
[%- IF ( show_disabled_message ) %] |
|
12 |
[% 'Element disabled' | $T8 %] |
|
13 |
[%- END %] |
|
14 |
[%- ELSIF ( var.config .type == 'bool' ) %] |
|
15 |
[% L.checkbox_tag(var_name, checked = var.value) %] |
|
16 |
[%- ELSIF ( var.config .type == 'textfield' ) %] |
|
17 |
[% L.textarea_tag(var_name, var.value, cols = var.config.processed_options.WIDTH, rows = var.config.processed_options.HEIGHT) %] |
|
18 |
[%- ELSIF ( var.config.type == 'date' ) %] |
|
19 |
[% L.date_tag(var_name, var.value) %] |
|
20 |
[%- ELSIF ( var.config.type == 'timestamp' ) %] |
|
21 |
[% L.input_tag(var_name, var.value) %] |
|
22 |
[%- ELSIF ( var.config.type == 'customer' ) %] |
|
23 |
[% L.customer_picker(var_name, var.value) %] |
|
24 |
[%- ELSIF ( var.config.type == 'vendor' ) %] |
|
25 |
[% L.vendor_selector(var_name, var.value) %] |
|
26 |
[%- ELSIF ( var.config.type == 'part' ) %] |
|
27 |
[% L.part_selector(var_name, var.value) %] |
|
28 |
[%- ELSIF ( var.config.type == 'select' ) %] |
|
29 |
[% L.select_tag(var_name, var.config.processed_options, default = var.value) %] |
|
30 |
[%- ELSIF ( var.config.type == 'number' ) %] |
|
31 |
[%- L.input_tag(var_name, LxERP.format_amount(var.value, -2)) %] |
|
32 |
[%- ELSE %] |
|
33 |
[% L.input_tag(var_name, var.value, maxlength = var.config.processed_options.MAXLENGTH) %] |
|
34 |
[%- END %] |
templates/webpages/customer_vendor/tabs/contacts.html | ||
---|---|---|
214 | 214 |
<th align="left" valign="top" nowrap>[% var.config.description | html %]</th> |
215 | 215 |
|
216 | 216 |
<td valign="top"> |
217 |
[% PROCESS 'customer_vendor/render_cvar_input.html'
|
|
217 |
[% PROCESS 'common/render_cvar_input.html'
|
|
218 | 218 |
cvar_name_prefix = 'contact_cvars.' |
219 | 219 |
%] |
220 | 220 |
</td> |
templates/webpages/customer_vendor/tabs/custom_variables.html | ||
---|---|---|
8 | 8 |
<th align="left" valign="top" nowrap>[% var.config.description | html %]</th> |
9 | 9 |
|
10 | 10 |
<td valign="top"> |
11 |
[% PROCESS 'customer_vendor/render_cvar_input.html'
|
|
11 |
[% PROCESS 'common/render_cvar_input.html'
|
|
12 | 12 |
cvar_name_prefix = 'cv_cvars.' |
13 | 13 |
%] |
14 | 14 |
</td> |
Auch abrufbar als: Unified diff
CVars: RDBO-basiertes Render-Template nach webpages/common verschoben