<section>
{{- form_widget(form) -}}
{%- if errors|length > 0 -%}
- <div class="error">
+ <div class="message error">
{{- form_errors(form) -}}
</div>
{%- endif -%}
{%- endif -%}
{%- if errors|length > 0 -%}
<header>
- <div class="error">
+ <div class="message error">
{{- form_errors(form) -}}
</div>
</header>