Revision 30e4d5bf
Von Sven Schöling vor etwa 13 Jahren hinzugefügt
templates/webpages/amcvar/render_inputs_block.html | ||
---|---|---|
3 | 3 |
[%- USE L %] |
4 | 4 |
[%- BLOCK cvar_name %][% HTML.escape(cvar.name_prefix) _ "cvar_" _ HTML.escape(cvar.var.name) _ HTML.escape(cvar.name_postfix) -%][% END %] |
5 | 5 |
[%- BLOCK cvar_inputs %] |
6 |
[% render_input_blocks__cvar_name = PROCESS cvar_name %] |
|
6 | 7 |
[%- %] |
7 | 8 |
[%- IF cvar.hide_non_editable && !cvar.var.flag_editable %] |
8 | 9 |
<input type="hidden" name="[% PROCESS cvar_name %]" value="[% HTML.escape(cvar.var.value) %]"> |
... | ... | |
15 | 16 |
[%- ELSIF cvar.var.type == 'textfield' %] |
16 | 17 |
<textarea name="[% PROCESS cvar_name %]" cols="[% HTML.escape(cvar.var.width) %]" rows="[% HTML.escape(cvar.var.height) %]">[% HTML.escape(cvar.value) %]</textarea> |
17 | 18 |
[%- ELSIF cvar.var.type == 'date' %] |
18 |
<input name="[% PROCESS cvar_name %]" id="[% PROCESS cvar_name %]" size="12" value="[% HTML.escape(cvar.value) %]"> |
|
19 |
<input name="[% PROCESS cvar_name %]_button" id="[% PROCESS cvar_name %]_trigger" type="button" value="?"> |
|
20 |
<script type="text/javascript"> |
|
21 |
<!-- |
|
22 |
Calendar.setup({ inputField : "[% PROCESS cvar_name %]", |
|
23 |
ifFormat : "[% myconfig_jsc_dateformat %]", |
|
24 |
align : "BR", |
|
25 |
button : "[% PROCESS cvar_name %]_trigger" }); |
|
26 |
--> |
|
27 |
</script> |
|
19 |
[%- L.date_tag(render_input_blocks__cvar_name, cvar.value) %] |
|
20 |
|
|
28 | 21 |
[%- ELSIF cvar.var.type == 'timestamp' %] |
29 | 22 |
<input name="[% PROCESS cvar_name %]" value="[% HTML.escape(cvar.value) %]"> |
30 | 23 |
[%- ELSIF cvar.var.type == 'select' %] |
Auch abrufbar als: Unified diff
date_tag auch in block inputs verwenden