Skip to content

Commit

Permalink
Merge pull request #111 from Becklyn/form-row-error
Browse files Browse the repository at this point in the history
Add `.form-row` to top level form errors
  • Loading branch information
Jannik committed Jul 2, 2020
2 parents 89f443c + 7d62c1a commit 5e9f690
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
7.13.2
======

* (bug) Add `.form-row` to top level form errors.


7.13.1
======

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/form/theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

{%- block form_errors -%}
{%- if errors|length > 0 -%}
<ul class="form-errors">
<ul class="form-errors {{ form is rootform ? "form-row" }}">
{%- for error in errors -%}
<li>{{ "form.error.message" | trans({error: error.message}) }}</li>
{%- endfor -%}
Expand Down

0 comments on commit 5e9f690

Please sign in to comment.