add translations for all steps and clean layout

This commit is contained in:
2016-04-21 22:50:17 +02:00
parent 4bfe4b361f
commit afcf9e270e
5 changed files with 58 additions and 16 deletions

View File

@@ -37,6 +37,9 @@
{{ form_widget(filter_form.form) }}
{% endfor %}
</div>
{% else %}
{# render the children, to mark the widget as 'rendered' #}
{{ form_widget(form.children.export.children.filters) }}
{% endif %}
{% if form.children.export.children.aggregators is not empty %}
@@ -48,16 +51,15 @@
{{ form_widget(aggregator_form.form) }}
{% endfor %}
</div>
{% else %}
{# render the children, to mark the widget as 'rendered' #}
{{ form_widget(form.children.export.children.aggregators) }}
{% endif %}
<div>
<h2>{{ 'Formatter'| trans }}</h2>
{{ form_row(form.children.export.children.pick_formatter.children.alias) }}
</div>
{% if form.children.export.children.export.children|length > 0 %}
<div>
<h2>{{ 'Export'|trans }}</h2>
<h2>{{ 'Export parameters'|trans }}</h2>
{{ form_widget(form.children.export.children.export) }}
</div>
{% else %}
@@ -65,7 +67,15 @@
{{ form_widget(form.children.export.children.export) }}#}
{% endif %}
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' } } ) }}</p>
<div style="clear: both;">
<h2>{{ 'Formatter'| trans }}</h2>
<p> {{ 'Choose the formatter'|trans }}</p>
{{ form_row(form.children.export.children.pick_formatter.children.alias, { 'label' : 'Formatter' }) }}
</div>
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-create' }, 'label' : 'Go to formatter options' } ) }}</p>
{{ form_end(form) }}
{% endblock layout_wvm_content %}

View File

@@ -29,10 +29,13 @@
{{ form_start(form) }}
<h2>{{ 'Pick centers'|trans }}</h2>
<p>{{ 'The export will contains only data from the picked centers.'|trans }}
{{ 'This will eventually restrict your possibilities in filtering the data.'|trans }}</p>
{{ form_widget(form.centers.c) }}
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' } } ) }}</p>
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action bt-create' }, 'label' : 'Go to export options' } ) }}</p>
{{ form_end(form) }}
{% endblock layout_wvm_content %}

View File

@@ -27,12 +27,20 @@
<p>{{ export.description|trans }}</p>
{{ form_start(form) }}
<div>
<div style="">
<h2>{{ 'Formatter'| trans }}</h2>
{{ form_widget(form.children.formatter) }}
<div style="clear: both;">
{% for input in form.children.formatter.children %}
{{ form_row(input) }}
{% endfor %}
</div>
</div>
<div style=clear:both;">
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' }, 'label': 'Generate the report' } ) }}</p>
</div>
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' } } ) }}</p>
{{ form_end(form) }}
{% endblock layout_wvm_content %}