{# * Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS, / * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} {% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %} {% block title %}{{ export.title|trans }}{% endblock %} {% block layout_wvm_content %}

{{ export.title|trans }}

{{ export.description|trans }}

{{ form_start(form) }} {% if form.children.export.children.filters is not empty%}

{{ 'Filters'| trans }}

{% for filter_form in form.children.export.children.filters %} {{ form_label(filter_form) }} {{ form_row(filter_form.enabled) }} {{ 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 %}

{{ 'Aggregators'| trans }}

{% for aggregator_form in form.children.export.children.aggregators %} {{ form_label(aggregator_form) }} {{ form_row(aggregator_form.enabled) }} {{ form_widget(aggregator_form.form) }} {% endfor %}
{% else %} {# render the children, to mark the widget as 'rendered' #} {{ form_widget(form.children.export.children.aggregators) }} {% endif %} {% if form.children.export.children.export.children|length > 0 %}

{{ 'Export parameters'|trans }}

{{ form_widget(form.children.export.children.export) }}
{% else %} {# render the children, to mark the widget as 'rendered' {{ form_widget(form.children.export.children.export) }}#} {% endif %}

{{ '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 %}