{% macro render_field(field) %} {{ field.label }} {% if field.errors %} {% endif %} {{ field(**kwargs)|safe }} {% endmacro %}