Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 888b48a

Browse filesBrowse files
committed
Fix collision between view properties and form fields
1 parent c9f72e2 commit 888b48a
Copy full SHA for 888b48a

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Resources/views/Form/foundation_5_layout.html.twig
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.