mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
sf4, fix twig depreciation with loop for and if condition
This commit is contained in:
parent
95cee22a30
commit
ed4975b41d
@ -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 %}
|
||||
|
@ -26,7 +26,7 @@
|
||||
<h1>{{ 'Exports list'|trans }}</h1>
|
||||
|
||||
<div>
|
||||
{% for group, exports in grouped_exports if group != '_' %}
|
||||
{% for group, exports in grouped_exports %}{% if group != '_' %}
|
||||
<h2>{{ group }}</h2>
|
||||
|
||||
<div class="export-list">
|
||||
@ -43,7 +43,7 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}{% endfor %}
|
||||
|
||||
{% if grouped_exports|keys|length > 1 %}
|
||||
<h2>{{ 'Ungrouped exports'|trans }}</h2>
|
||||
|
Loading…
x
Reference in New Issue
Block a user