We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a05379e + 9a0b2cc commit 3fb5ad4Copy full SHA for 3fb5ad4
src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig
@@ -223,9 +223,13 @@
223
{# Errors #}
224
225
{% block form_errors -%}
226
- {% if errors|length > 0 %}
+ {% if errors|length > 0 -%}
227
{% if form.parent %}<span class="help-block">{% else %}<div class="alert alert-danger">{% endif %}
228
- {{- parent() -}}
+ <ul class="list-unstyled">
229
+ {%- for error in errors -%}
230
+ <li><span class="glyphicon glyphicon-exclamation-sign"></span> {{ error.message|trans({}, translation_domain) }}</li>
231
+ {%- endfor -%}
232
+ </ul>
233
{% if form.parent %}</span>{% else %}</div>{% endif %}
- {% endif %}
234
+ {%- endif %}
235
{%- endblock form_errors %}
0 commit comments