mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
exports: improve formatter twig template (when multiple order rows)
This commit is contained in:
parent
a817b0bf4c
commit
5c2b2105b2
@ -33,19 +33,21 @@
|
||||
<section class="formatter mb-4">
|
||||
<h2>{{ 'Formatter'| trans }}</h2>
|
||||
|
||||
<div>
|
||||
{% if form.children.formatter.children|length == 0 %}
|
||||
<p>
|
||||
<span class="chill-no-data-statement">{{ "No options availables. Your report is fully configured."|trans }}</span>
|
||||
</p>
|
||||
{{ form_widget(form.children.formatter) }}
|
||||
{% else %}
|
||||
{# we always have to render children, to mark as rendered #}
|
||||
{% for input in form.children.formatter.children %}
|
||||
{{ form_row(input) }}
|
||||
{% endfor %}
|
||||
<div class="container py-4">
|
||||
{# we always have to render children, to mark as rendered #}
|
||||
{% for input in form.children.formatter.children %}
|
||||
<div class="row">
|
||||
{{ form_row(input) }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="mb-4">
|
||||
|
Loading…
x
Reference in New Issue
Block a user