X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Famcvar%2Frender_inputs_block.html;h=73731625a63dacbec7cfc7ac85039cc36962f289;hb=7e61972690cfa1f688ebd9770fcf9d100b9dfdd0;hp=bea36c04867c8f4600f519438ddcb15a3022b807;hpb=7dd8ee369c041cbcd772bb27de8fdacb21166626;p=kivitendo-erp.git
diff --git a/templates/webpages/amcvar/render_inputs_block.html b/templates/webpages/amcvar/render_inputs_block.html
index bea36c048..73731625a 100644
--- a/templates/webpages/amcvar/render_inputs_block.html
+++ b/templates/webpages/amcvar/render_inputs_block.html
@@ -1,44 +1,79 @@
[%- USE T8 %]
[%- USE HTML %]
+[%- USE L %]
+[%- USE P %]
+[%- USE LxERP %][%- USE P -%]
[%- BLOCK cvar_inputs %]
-[%- var = cvar.var %]
-[%- hide_non_editable = cvar.hide_non_editable, %]
-[%- name_prefix = cvar.name_prefix, %]
-[%- name_postfix = cvar.name_postfix, %]
-[%- valid = cvar.valid, %]
-[%- value = cvar.value, %]
-[%- var_name = HTML.escape(name_prefix) _ "cvar_" _ HTML.escape(var.name) _ HTML.escape(name_postfix) -%]
-[%- %]
-[%- IF hide_non_editable && !var.flag_editable %]
-
-[%- ELSIF !valid %]
+[%- SET render_cvar_tag_options = {};
+ render_cvar_tag_options.import(cvar_tag_options) IF cvar_tag_options;
+ SET cvar_tag_name = HTML.escape(cvar.name_prefix) _ "cvar_" _ HTML.escape(cvar.var.name) _ HTML.escape(cvar.name_postfix);
+ IF !render_cvar_tag_options.id && (cvar.var.type != 'select');
+ SET render_cvar_tag_options.no_id = 1;
+ END;
+%]
+
+[%- IF (!cvar.hide_non_editable || cvar.var.flag_editable) && !cvar.partsgroup_filtered %]
+
+[%- IF !cvar.valid %]
[%- IF show_disabled_message %]
[% 'Element disabled' | $T8 %]
[%- END %]
-[%- ELSIF var.type == 'bool' %]
-
-[%- ELSIF var.type == 'textfield' %]
-
-[%- ELSIF var.type == 'date' %]
-
-
-
-[%- ELSIF var.type == 'timestamp' %]
-
-[%- ELSIF var.type == 'select' %]
-