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