8000 Fix collision between view properties and form fields · symfony/symfony@888b48a · GitHub
[go: up one dir, main page]

Skip to content

Commit 888b48a

Browse files
committed
Fix collision between view properties and form fields
1 parent c9f72e2 commit 888b48a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/foundation_5_layout.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,11 @@
318318

319319
{% block form_errors -%}
320320
{% if errors|length > 0 -%}
321-
{% if form.parent %}<small class="error">{% else %}<div data-alert class="alert-box alert">{% endif %}
321+
{% if form is not rootform %}<small class="error">{% else %}<div data-alert class="alert-box alert">{% endif %}
322322
{%- for error in errors -%}
323323
{{ error.message }}
324324
{% if not loop.last %}, {% endif %}
325325
{%- endfor -%}
326-
{% if form.parent %}</small>{% else %}</div>{% endif %}
326+
{% if form is not rootform %}</small>{% else %}</div>{% endif %}
327327
{%- endif %}
328328
{%- endblock form_errors %}

0 commit comments

Comments
 (0)
0