mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 23:53:50 +00:00
[export] add a filter and aggregator on accompanying period work: group/filter by handling third party
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{#
|
||||
* Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS,
|
||||
* Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS,
|
||||
<info@champs-libres.coop> / <http://www.champs-libres.coop>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
@@ -36,84 +36,84 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="col-md-10">
|
||||
|
||||
|
||||
{{ include('@ChillMain/Export/_breadcrumb.html.twig') }}
|
||||
|
||||
|
||||
<h1>{{ export.title|trans }}</h1>
|
||||
|
||||
|
||||
<p>{{ export.description|trans }}</p>
|
||||
|
||||
|
||||
{{ form_start(form) }}
|
||||
|
||||
|
||||
{% if form.children.export.children.filters is defined %}
|
||||
{% if form.children.export.children.filters is not empty%}
|
||||
|
||||
|
||||
<section class="filter mb-4">
|
||||
<h2>{{ 'Filters'| trans }}</h2>
|
||||
|
||||
|
||||
{{ form_errors(form.children.export.children.filters) }}
|
||||
|
||||
|
||||
<div class="flex-table">
|
||||
{% for filter_form in form.children.export.children.filters %}
|
||||
<div class="item-bloc no-altern">
|
||||
|
||||
|
||||
{{ form_widget(filter_form.enabled, {
|
||||
'label': filter_form.vars.label,
|
||||
'label_attr': { 'class': 'h6' },
|
||||
'attr': { 'data-display-target': filter_form.vars.id }
|
||||
}) }}
|
||||
|
||||
|
||||
<div data-display-show-hide="{{ filter_form.vars.id }}">
|
||||
{{ form_widget(filter_form.form) }}
|
||||
{{ form_errors(filter_form) }}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
{% 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 %}
|
||||
|
||||
|
||||
<section class="aggregator mb-4">
|
||||
<h2>{{ 'Aggregators'| trans }}</h2>
|
||||
|
||||
|
||||
<div class="flex-table">
|
||||
{% for aggregator_form in form.children.export.children.aggregators %}
|
||||
<div class="item-bloc no-altern">
|
||||
|
||||
|
||||
{{ form_widget(aggregator_form.enabled, {
|
||||
'label': aggregator_form.vars.label,
|
||||
'label_attr': { 'class': 'h6' },
|
||||
'attr': { 'data-display-target': aggregator_form.vars.id }
|
||||
}) }}
|
||||
|
||||
|
||||
<div data-display-show-hide="{{ aggregator_form.vars.id }}">
|
||||
{{ form_widget(aggregator_form.form) }}
|
||||
{{ form_errors(aggregator_form) }}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
{% 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 %}
|
||||
|
||||
|
||||
<style>
|
||||
div#export_export_fields { column-count: 2; }
|
||||
</style>
|
||||
@@ -123,12 +123,12 @@
|
||||
</h2>
|
||||
{{ form_widget(form.children.export.children.export) }}
|
||||
</section>
|
||||
|
||||
|
||||
{% 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 %}
|
||||
<section class="formatter mb-4">
|
||||
<h2>
|
||||
@@ -140,7 +140,7 @@
|
||||
{{ form_row(form.children.export.children.pick_formatter.children.alias, { 'label' : 'Formatter' }) }}
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'btn btn-create' }, 'label' : 'Go to formatter options' } ) }}</p>
|
||||
{{ form_end(form) }}
|
||||
|
||||
|
Reference in New Issue
Block a user