sf4, fix twig depreciation with loop for and if condition

This commit is contained in:
2020-07-31 12:51:49 +02:00
parent 95cee22a30
commit ed4975b41d
2 changed files with 4 additions and 4 deletions

View File

@@ -7,9 +7,9 @@
{{ form_start(form) }}
{% block crud_content_form_rows %}
{% for f in form if f.vars.name != 'submit' %}
{% for f in form %}{% if f.vars.name != 'submit' %}
{{ form_row(f) }}
{% endfor %}
{% endif %}{% endfor %}
{% endblock crud_content_form_rows %}
{% block crud_content_form_actions %}