Skip to content

Commit

Permalink
bug #437 Display the global form errors (thomasbeaujean, javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Display the global form errors

This finishes #436.

Commits
-------

e058b8f Tweaked the HTML of the global form errors
aaeeb17 The error div must not be display if there is no error
6e5adff Display the general form errors
57a2b77 Merge pull request #5 from javiereguiluz/master
  • Loading branch information
javiereguiluz committed Sep 7, 2015
2 parents 5faed9f + e058b8f commit 6e3c824
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Resources/views/default/form.html.twig
@@ -1,6 +1,10 @@
{% trans_default_domain "EasyAdminBundle" %}

{{ form_start(form, { attr: form.vars.attr|merge({ novalidate: 'novalidate' }) }) }}
{% if form.vars.errors|length > 0 %}
{{ form_errors(form) }}
{% endif %}

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

Expand Down

0 comments on commit 6e3c824

Please sign in to comment.