{% macro render_field_with_errors(field) %} {{ field.label }} {{ field(**kwargs)|safe }} {% if field.errors %}