<section>
{{- form_widget(form) -}}
{%- if errors|length > 0 -%}
- <div class="error">
+ <div class="message error">
{{- form_errors(form) -}}
</div>
{%- endif -%}
{%- if form_method != method -%}
<input type="hidden" name="_method" value="{{ method }}" />
{%- endif -%}
+ {%- if errors|length > 0 -%}
+ <header>
+ <div class="message error">
+ {{- form_errors(form) -}}
+ </div>
+ </header>
+ {%- endif -%}
{%- endblock form_start -%}
{%- block form_end -%}