Skip to content

Commit

Permalink
Tweaked the HTML of the global form errors
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Sep 7, 2015
1 parent aaeeb17 commit e058b8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Resources/views/default/form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

{{ form_start(form, { attr: form.vars.attr|merge({ novalidate: 'novalidate' }) }) }}
{% if form.vars.errors|length > 0 %}
<div class="alert alert-danger">
{{ form_errors(form) }}
</div>
{{ form_errors(form) }}
{% endif %}

<div class="row">
<input type="hidden" name="referer" value="{{ app.request.query.get('referer', '') }}" />

Expand Down

0 comments on commit e058b8f

Please sign in to comment.