{% import 'bootstrap/wtf.html' as wtf %} {% macro field(field, image, size='100x100', crop='fit', quality=85, alt='', title='', delete_field=none, storage_type=none, bucket_name=none) %}
{{field.label(class="control-label")|safe}}
{% if image %}
{{ alt }}
{% endif %} {% if image %}
{% endif %} {{field(class="form-control", **kwargs)|safe}} {% if delete_field %} {{ wtf.form_field(delete_field) }} {% endif %} {% if image %}
{% endif %}
{%- if field.errors %} {%- for error in field.errors %}

{{error}}

{%- endfor %} {%- elif field.description -%}

{{field.description|safe}}

{%- endif %}
{% endmacro %}