X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Famcvar%2Frender_inputs_block.html;h=33623f61d43026feba817efe66536d1e6f79bbb0;hb=c0318621a7eb2c05cfec74d2fbbd37025a03dc3d;hp=996525fbaa531b2c740979e6c2ecbc354a18326c;hpb=424c012926d0c7cef3e051b3bb0bb17f57cb393f;p=kivitendo-erp.git
diff --git a/templates/webpages/amcvar/render_inputs_block.html b/templates/webpages/amcvar/render_inputs_block.html
index 996525fba..33623f61d 100644
--- a/templates/webpages/amcvar/render_inputs_block.html
+++ b/templates/webpages/amcvar/render_inputs_block.html
@@ -1,7 +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 %]
@@ -12,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' %]
@@ -32,6 +27,18 @@
[%- END %]
+[%- ELSIF cvar.var.type == 'customer' %]
+[%- 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 %]