3 [%- BLOCK cvar_name %][% HTML.escape(cvar.name_prefix) _ "cvar_" _ HTML.escape(cvar.var.name) _ HTML.escape(cvar.name_postfix) -%][% END %]
4 [%- BLOCK cvar_inputs %]
6 [%- IF cvar.hide_non_editable && !cvar.var.flag_editable %]
7 <input type="hidden" name="[% PROCESS cvar_name %]" value="[% HTML.escape(cvar.var.value) %]">
8 [%- ELSIF !cvar.valid %]
9 [%- IF show_disabled_message %]
10 <i>[% 'Element disabled' | $T8 %]</i>
12 [%- ELSIF cvar.var.type == 'bool' %]
13 <input type="checkbox" name="[% PROCESS cvar_name %]" value="1"[% IF cvar.value %] checked[% END %]>
14 [%- ELSIF cvar.var.type == 'textfield' %]
15 <textarea name="[% PROCESS cvar_name %]" cols="[% HTML.escape(cvar.var.width) %]" rows="[% HTML.escape(cvar.var.height) %]">[% HTML.escape(cvar.value) %]</textarea>
16 [%- ELSIF cvar.var.type == 'date' %]
17 <input name="[% PROCESS cvar_name %]" id="[% PROCESS cvar_name %]" size="12" value="[% HTML.escape(cvar.value) %]">
18 <input name="[% PROCESS cvar_name %]_button" id="[% PROCESS cvar_name %]_trigger" type="button" value="?">
19 <script type="text/javascript">
21 Calendar.setup({ inputField : "[% PROCESS cvar_name %]",
22 ifFormat : "[% myconfig_jsc_dateformat %]",
24 button : "[% PROCESS cvar_name %]_trigger" });
27 [%- ELSIF cvar.var.type == 'timestamp' %]
28 <input name="[% PROCESS cvar_name %]" value="[% HTML.escape(cvar.value) %]">
29 [%- ELSIF cvar.var.type == 'select' %]
30 <select name="[% PROCESS cvar_name %]">
31 [%- FOREACH option = cvar.var.OPTIONS %]
32 <option[% IF option.value == cvar.value %] selected[% END %]>[% HTML.escape(option.value) %]</option>
36 <input name="[% PROCESS cvar_name %]" value="[% HTML.escape(cvar.value) %]" [%- IF cvar.var.maxlength %] maxlength="[% HTML.escape(cvar.var.maxlength) %]"[% END -%]>