exports: improve formatter twig template (when multiple order rows)

This commit is contained in:
Mathieu Jaumotte 2022-09-08 11:47:41 +02:00
parent a817b0bf4c
commit 5c2b2105b2

View File

@ -33,19 +33,21 @@
<section class="formatter mb-4"> <section class="formatter mb-4">
<h2>{{ 'Formatter'| trans }}</h2> <h2>{{ 'Formatter'| trans }}</h2>
<div>
{% if form.children.formatter.children|length == 0 %} {% if form.children.formatter.children|length == 0 %}
<p> <p>
<span class="chill-no-data-statement">{{ "No options availables. Your report is fully configured."|trans }}</span> <span class="chill-no-data-statement">{{ "No options availables. Your report is fully configured."|trans }}</span>
</p> </p>
{{ form_widget(form.children.formatter) }} {{ form_widget(form.children.formatter) }}
{% else %} {% else %}
{# we always have to render children, to mark as rendered #} <div class="container py-4">
{% for input in form.children.formatter.children %} {# we always have to render children, to mark as rendered #}
{{ form_row(input) }} {% for input in form.children.formatter.children %}
{% endfor %} <div class="row">
{{ form_row(input) }}
</div>
{% endfor %}
</div>
{% endif %} {% endif %}
</div>
</section> </section>
<div class="mb-4"> <div class="mb-4">