{# render some data attributes for form rows #} {# set attr = (form.vars.attr is not empty) ? form.vars.attr : {} #} {%- if conditionallyVisible is defined %} data-conditionally-visible="{{ conditionallyVisible|json_encode }}" {% endif -%} {%- if conditionallyDetached is defined and conditionallyDetached %} data-conditionally-detached="true" {% endif -%} {%- if conditionalScope is defined %} data-conditional-scope="{{ conditionalScope }}" {% endif -%}