{% macro render_field(field, label_visible=true) -%}
{% if field.type != 'HiddenField' and label_visible %} {% endif %} {{ field(class_='form-control', **kwargs) }} {% if field.errors %} {% for e in field.errors %}

{{ e }}

{% endfor %} {% endif %}
{%- endmacro %}