{% macro with_errors(field) -%}
{{ field.label(class_='control-label') }}
{{ field(**kwargs) }} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %}
{%- endmacro %}