{% macro render_field(form, fields, scope) %} {% import _self as self %} {% for index, field in fields %} {%- set show_field = attribute(field, "input@") ?? field.store ?? true %} {% if field.fields %} {%- set new_scope = field.nest_id ? scope ~ field.name ~ '.' : scope -%} {{- self.render_field(form, field.fields, new_scope) }} {% else %} {% if show_field %} {%- set value = form.value(scope ~ (field.name ?? index)) -%} {% if value %} {% block field %}