6 [%- DEFAULT var_name = HTML.escape(cvar_name_prefix) _ HTML.escape(var.config.name) _ HTML.escape(cvar_name_postfix) %]
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 %]
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)) %]
33 [% L.input_tag(var_name, var.value, maxlength = var.config.processed_options.MAXLENGTH) %]