{% macro render_field(element) %} {%if element.field %} {% set field=element.field %} {% else %} {% set field=element %} {% endif %} {% if element.extra_attributes %} {% set extra_attributes=element.extra_attributes %} {% else %} {% set extra_attributes={} %} {% endif %} {% if "Hidden" in field.type %} {{ field(**extra_attributes)|safe }} {% else %} {% if field.type != "HtmlElement" or field.subgroup_fields==true %}