improve layout and messages for export

This commit is contained in:
2016-11-24 22:48:11 +01:00
parent 6c1c481e1a
commit d33500f764
8 changed files with 53 additions and 30 deletions

View File

@@ -31,9 +31,17 @@
<h2>{{ 'Formatter'| trans }}</h2>
<div style="clear: both;">
{% for input in form.children.formatter.children %}
{{ form_row(input) }}
{% endfor %}
{% 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 %}
{% endif %}
</div>
</div>