{% macro render_field(form, fields, scope) %} {% for index, field in fields %} {% set input = attribute(field, "input@") %} {% if input is null or input == true %} {% if form.value(scope ~ field.name) %} {% block field %}