Skip to content

Commit

Permalink
Merge pull request #717 from trsteel88/v2.3.x
Browse files Browse the repository at this point in the history
Ensure all error messages have .text-error
  • Loading branch information
phiamo committed Nov 28, 2013
2 parents 04865a5 + b6ac9eb commit ae77c07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/views/Form/fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,15 @@
{% else %}
{% if errors|length > 0 %}
<span class="help-{{ block('error_type') }}">
<span class="text-error">
{% for error in errors %}
{{
error.messagePluralization is null
? error.messageTemplate|trans(error.messageParameters, 'validators')
: error.messageTemplate|transchoice(error.messagePluralization, error.messageParameters, 'validators')
}} <br>
{% endfor %}
</span>
</span>
{% endif %}
{% endif %}
Expand Down

0 comments on commit ae77c07

Please sign in to comment.