X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Famcvar%2Frender_inputs_block.html;h=33623f61d43026feba817efe66536d1e6f79bbb0;hb=0f4915834072e2f689ad80709b0801f46d786de9;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..33623f61d 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,17 @@
[%- 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 == 'vendor' %]
+[% L.vendor_selector(render_input_blocks__cvar_name, cvar.value) %]
+
+[%- ELSIF cvar.var.type == 'part' %]
+[% L.part_selector(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 %]