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.
1 parent 66a449a commit bb11ddfCopy full SHA for bb11ddf
templates/form/layout.html.twig
@@ -4,13 +4,13 @@
4
5
{% block form_errors -%}
6
{% if errors|length > 0 -%}
7
- {% if form.parent %}<span class="help-block">{% else %}<div class="alert alert-danger">{% endif %}
+ {% if form is not rootform %}<span class="help-block">{% else %}<div class="alert alert-danger">{% endif %}
8
<ul class="list-unstyled">
9
{%- for error in errors -%}
10
{# use font-awesome icon library #}
11
<li><span class="fa fa-exclamation-triangle"></span> {{ error.message }}</li>
12
{%- endfor -%}
13
</ul>
14
- {% if form.parent %}</span>{% else %}</div>{% endif %}
+ {% if form is not rootform %}</span>{% else %}</div>{% endif %}
15
{%- endif %}
16
{%- endblock form_errors %}
0 commit comments