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:
2016-01-12 22:20:28 +01:00
parent cf255cd0a2
commit fe1a9a0838
5 changed files with 57 additions and 5 deletions

View File

@@ -186,5 +186,6 @@ services:
class: Chill\MainBundle\Export\Formatter\CSVFormatter
arguments:
- "@translator"
- "@chill.main.export_manager"
tags:
- { name: chill.export_formatter, alias: 'csv' }

View File

@@ -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>

View File

@@ -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 %}