X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec_item%2F_function_block_form.html;h=8b227e0a7790833a265cfa3200ca069a3ff9a8ea;hb=e3dfdb7a78f6e0bc8ac1075fedc36f8247c6fd92;hp=15023b7c524f9f1a01cdca8bb60dbd9ac0b08e23;hpb=442b26e2b4f442a41fbe5fa256b12c0e01219190;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec_item/_function_block_form.html b/templates/webpages/requirement_spec_item/_function_block_form.html index 15023b7c5..8b227e0a7 100644 --- a/templates/webpages/requirement_spec_item/_function_block_form.html +++ b/templates/webpages/requirement_spec_item/_function_block_form.html @@ -1,20 +1,43 @@ -[%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE JavaScript -%][% SET style="width: 500px" %] +[%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE JavaScript -%][%- USE P -%][% SET style="width: 500px" %] [% DEFAULT id_base = 'edit_function_block_' _ SELF.item.id %] +[%- SET a_options = '' %] +[%- IF SELF.item.id %] + [%- SET a_options = "to_show: '#" _ SELF.item.item_type _ "-content-top-" _ SELF.item.id _ "'" %] +[%- END %] +[%- IF SELF.item.item_type == 'sub-function-block' %] + [%- SET a_options = a_options ? a_options _ ', ' : a_options %] + [%- SET a_options = a_options _ "to_hide_if_empty: '#sub-function-block-container-" _ SELF.item.parent_id _ "'" %] +[%- END %]