X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Famcvar%2Frender_inputs_block.html;h=3f7461cc8972f2bd92693656aa01c860dbba8943;hb=43829e1b3268d8134e3ab008fc60fcc4bacd6523;hp=388b017bcfa1e816343d600851b70804df85066e;hpb=8084ef359515031ec8429b49baf0ab09858f55d2;p=kivitendo-erp.git
diff --git a/templates/webpages/amcvar/render_inputs_block.html b/templates/webpages/amcvar/render_inputs_block.html
index 388b017bc..3f7461cc8 100644
--- a/templates/webpages/amcvar/render_inputs_block.html
+++ b/templates/webpages/amcvar/render_inputs_block.html
@@ -1,8 +1,10 @@
[%- USE T8 %]
[%- USE HTML %]
[%- USE L %]
+[%- USE LxERP %]
[%- BLOCK cvar_name %][% HTML.escape(cvar.name_prefix) _ "cvar_" _ HTML.escape(cvar.var.name) _ HTML.escape(cvar.name_postfix) -%][% END %]
[%- BLOCK cvar_inputs %]
+[% render_input_blocks__cvar_name = PROCESS cvar_name %]
[%- %]
[%- IF cvar.hide_non_editable && !cvar.var.flag_editable %]
@@ -13,18 +15,10 @@
[%- ELSIF cvar.var.type == 'bool' %]
[%- ELSIF cvar.var.type == 'textfield' %]
-
+[% L.textarea_tag(render_input_blocks__cvar_name, cvar.value, cols=cvar.var.width, rows=cvar.var.height) %]
[%- ELSIF cvar.var.type == 'date' %]
-
-
-
+[%- L.date_tag(render_input_blocks__cvar_name, cvar.value) %]
+
[%- ELSIF cvar.var.type == 'timestamp' %]
[%- ELSIF cvar.var.type == 'select' %]
@@ -34,7 +28,11 @@
[%- END %]
[%- ELSIF cvar.var.type == 'customer' %]
-[% render_input_blocks__cvar_name = PROCESS cvar_name %][% L.customer_picker(render_input_blocks__cvar_name, cvar.value) %]
+[%- L.customer_picker(render_input_blocks__cvar_name, cvar.value) %]
+
+[%- ELSIF cvar.var.type == 'number' %]
+[%- L.input_tag(render_input_blocks__cvar_name, LxERP.format_amount(cvar.value, -2)) %]
+
[%- ELSE %]
[%- END %]