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 327185f + e4ce312 commit 6e39051Copy full SHA for 6e39051
src/Symfony/Bridge/Twig/Resources/views/Form/foundation_5_layout.html.twig
@@ -318,11 +318,11 @@
318
319
{% block form_errors -%}
320
{% if errors|length > 0 -%}
321
- {% if form.parent %}<small class="error">{% else %}<div data-alert class="alert-box alert">{% endif %}
+ {% if form is not rootform %}<small class="error">{% else %}<div data-alert class="alert-box alert">{% endif %}
322
{%- for error in errors -%}
323
{{ error.message }}
324
{% if not loop.last %}, {% endif %}
325
{%- endfor -%}
326
- {% if form.parent %}</small>{% else %}</div>{% endif %}
+ {% if form is not rootform %}</small>{% else %}</div>{% endif %}
327
{%- endif %}
328
{%- endblock form_errors %}
0 commit comments