mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 16:43:48 +00:00
add form to formatter
The formatter can add a form. This form is handle by controller and exportManager. [WIP] The csv formatter ask the user to ordering the aggregators.
This commit is contained in:
@@ -186,5 +186,6 @@ services:
|
||||
class: Chill\MainBundle\Export\Formatter\CSVFormatter
|
||||
arguments:
|
||||
- "@translator"
|
||||
- "@chill.main.export_manager"
|
||||
tags:
|
||||
- { name: chill.export_formatter, alias: 'csv' }
|
||||
|
@@ -29,7 +29,7 @@
|
||||
{{ form_start(form) }}
|
||||
<div>
|
||||
<h2>{{ 'Formatter'| trans }}</h2>
|
||||
{{ form_row(form.children.formatter) }}
|
||||
{{ form_widget(form.children.formatter) }}
|
||||
</div>
|
||||
|
||||
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' } } ) }}</p>
|
||||
|
@@ -132,4 +132,13 @@
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
{% endblock form_errors %}
|
||||
{% endblock form_errors %}
|
||||
|
||||
{% block _formatter__aggregator_placement_csv_formatter_row %}
|
||||
<h3>{{ form_label(form) }}</h3>
|
||||
|
||||
{{ form_row(form.order) }}
|
||||
|
||||
{{ form_row(form.position) }}
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user