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