{% load i18n aldryn_forms_tags %}

{% if field %}
    <div class="form__field reveal_self reveal reveal_animation">
        {% render_form_widget field class=instance.custom_classes %}

        {% if field.errors %}
            <p class="form__field__errors">
                {% for error in field.errors %}
                    {{ error }}{% if not forloop.last %}<br>{% endif %}
                {% endfor %}
            </p>
        {% endif %}

        {% if field.help_text %}
            <p class="form__field__help_text">{{ field.help_text }}</p>
        {% endif %}
    </div>
{% endif %}
