{# * 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 "@ChillMain/layout.html.twig" %} {% block title %}{{ export.title|trans }}{% endblock %} {% block css %} {{ encore_entry_link_tags('mod_pickentity_type') }} {{ encore_entry_link_tags('mod_pick_rolling_date') }} {% endblock %} {% block js %} {{ encore_entry_script_tags('mod_pickentity_type') }} {{ encore_entry_script_tags('page_export') }} {% if export_alias == 'count_social_work_actions' %} {{ encore_entry_script_tags('vue_export_action_goal_result') }} {% endif %} {{ encore_entry_script_tags('mod_pick_rolling_date') }} {% endblock js %} {% block content %}
{{ include('@ChillMain/Export/_breadcrumb.html.twig') }}

{{ export.title|trans }}

{{ export.description|trans }}

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

{{ 'Filters'| trans }}

{{ form_errors(form.children.export.children.filters) }}
{% for filter_form in form.children.export.children.filters %}
{{ form_widget(filter_form.enabled, { 'label': filter_form.vars.label, 'label_attr': { 'class': 'h6' }, 'attr': { 'data-display-target': filter_form.vars.id } }) }}
{{ form_widget(filter_form.form) }} {{ form_errors(filter_form) }}
{% endfor %}
{% else %} {# render the children, to mark the widget as 'rendered' #} {{ form_widget(form.children.export.children.filters) }} {% endif %} {% endif %} {% if form.children.export.children.aggregators is defined %} {% if form.children.export.children.aggregators is not empty %}

{{ 'Aggregators'| trans }}

{% for aggregator_form in form.children.export.children.aggregators %}
{{ form_widget(aggregator_form.enabled, { 'label': aggregator_form.vars.label, 'label_attr': { 'class': 'h6' }, 'attr': { 'data-display-target': aggregator_form.vars.id } }) }}
{{ form_widget(aggregator_form.form) }} {{ form_errors(aggregator_form) }}
{% endfor %}
{% else %} {# render the children, to mark the widget as 'rendered' #} {{ form_widget(form.children.export.children.aggregators) }} {% endif %} {% 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 %} {% if form.children.export.children.pick_formatter is defined %}

{{ 'Formatter'| trans }}

{{ 'Choose the formatter'|trans }}

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

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

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