diff --git a/Controller/ExportController.php b/Controller/ExportController.php index 5f1341480..dea9ddcfc 100644 --- a/Controller/ExportController.php +++ b/Controller/ExportController.php @@ -245,11 +245,9 @@ class ExportController extends Controller )); } - //if (strpos($step, 'generate_') !== false) { - $builder->add('submit', 'submit', array( - 'label' => 'Generate' - )); - //} + $builder->add('submit', 'submit', array( + 'label' => 'Generate' + )); return $builder->getForm(); } diff --git a/Resources/translations/messages.fr.yml b/Resources/translations/messages.fr.yml index 6b739d6e7..b802e4664 100644 --- a/Resources/translations/messages.fr.yml +++ b/Resources/translations/messages.fr.yml @@ -17,6 +17,8 @@ Welcome: Bienvenue Export Menu: Export Admin Menu: Menu d'administration Details: Détails +yes: oui +no: non Edit: Modifier Update: Mettre à jour @@ -108,6 +110,27 @@ Create a new circle: Créer un nouveau cercle #export +# export creation step 0 : list of exports +Exports list: Liste des exports +Create an export: Créer un export +#export creation step 'center' : pick a center +Pick centers: Choisir les centres +The export will contains only data from the picked centers.: L'export ne contiendra que les données des centres choisis. +This will eventually restrict your possibilities in filtering the data.: Les possibilités de filtrages seront adaptées aux droits de consultation pour les centres choisis. +Go to export options: Vers la préparation de l'export +# export creation step 'export' : choose aggregators, filtering and formatter +Formatter: Formatteur +Choose the formatter: Choisissez le format d'export voulu. +Export parameters: Paramètres d'export +Filters: Filtres +Aggregators: Aggrégateurs +Go to formatter options: Vers les options du formatteur +#export creation step 'formatter' : choose formatter option +Generate the report: Générer le rapport + + #CSV List Formatter Add a number on first column: La première colonne est un numéro -Number: Numéro \ No newline at end of file +Number: Numéro +# the label which appears in the UI +CSV List: Liste au format CSV \ No newline at end of file diff --git a/Resources/views/Export/new.html.twig b/Resources/views/Export/new.html.twig index 08fef096b..a5a99157a 100644 --- a/Resources/views/Export/new.html.twig +++ b/Resources/views/Export/new.html.twig @@ -37,6 +37,9 @@ {{ form_widget(filter_form.form) }} {% endfor %} + {% 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 %} + {% else %} + {# render the children, to mark the widget as 'rendered' #} + {{ form_widget(form.children.export.children.aggregators) }} {% endif %} -
-

{{ 'Formatter'| trans }}

- {{ form_row(form.children.export.children.pick_formatter.children.alias) }} -
{% if form.children.export.children.export.children|length > 0 %}
-

{{ 'Export'|trans }}

+

{{ 'Export parameters'|trans }}

{{ form_widget(form.children.export.children.export) }}
{% else %} @@ -65,7 +67,15 @@ {{ form_widget(form.children.export.children.export) }}#} {% endif %} -

{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' } } ) }}

+
+

{{ 'Formatter'| trans }}

+ +

{{ 'Choose the formatter'|trans }}

+ + {{ form_row(form.children.export.children.pick_formatter.children.alias, { 'label' : 'Formatter' }) }} +
+ +

{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-create' }, 'label' : 'Go to formatter options' } ) }}

{{ form_end(form) }} {% endblock layout_wvm_content %} diff --git a/Resources/views/Export/new_centers_step.html.twig b/Resources/views/Export/new_centers_step.html.twig index 0d6362cfd..454abf85b 100644 --- a/Resources/views/Export/new_centers_step.html.twig +++ b/Resources/views/Export/new_centers_step.html.twig @@ -29,10 +29,13 @@ {{ form_start(form) }}

{{ 'Pick centers'|trans }}

+ +

{{ 'The export will contains only data from the picked centers.'|trans }} + {{ 'This will eventually restrict your possibilities in filtering the data.'|trans }}

{{ form_widget(form.centers.c) }} -

{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' } } ) }}

+

{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action bt-create' }, 'label' : 'Go to export options' } ) }}

{{ form_end(form) }} {% endblock layout_wvm_content %} diff --git a/Resources/views/Export/new_formatter_step.html.twig b/Resources/views/Export/new_formatter_step.html.twig index 8d708b299..0187442f4 100644 --- a/Resources/views/Export/new_formatter_step.html.twig +++ b/Resources/views/Export/new_formatter_step.html.twig @@ -27,12 +27,20 @@

{{ export.description|trans }}

{{ form_start(form) }} -
+

{{ 'Formatter'| trans }}

- {{ form_widget(form.children.formatter) }} + +
+ {% for input in form.children.formatter.children %} + {{ form_row(input) }} + {% endfor %} +
+
+ +
+

{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' }, 'label': 'Generate the report' } ) }}

-

{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' } } ) }}

{{ form_end(form) }} {% endblock layout_wvm_content %}