doughnut-wedding/app/Resources/views/form_errors.html.twig

22 lines
758 B
Twig
Raw Permalink Normal View History

2017-02-13 09:56:18 -08:00
{# form_errors.html.twig #}
{% block form_errors %}
{% spaceless %}
{% if errors|length > 0 %}
{% if compound %}
<div class="uk-alert-danger" uk-alert>
<a href="#" class="uk-close"></a>
{% for error in errors %}
<p>{{ error.message }}</p>
{% endfor %}
</div>
{% else %}
<div class="uk-alert-danger" uk-alert>
<a href="#" class="uk-text-danger uk-alert-close" uk-close></a>
{% set error = errors|first %}
<p>{{ error.message }}</p>
</div>
{% endif %}
{% endif %}
{% endspaceless %}
{% endblock form_errors %}