handling form for exportInterface

This commit is contained in:
2016-04-19 12:38:48 +02:00
parent 5dd98945f8
commit e57b421aec
3 changed files with 23 additions and 6 deletions

View File

@@ -28,6 +28,7 @@ use Symfony\Component\Form\FormBuilderInterface;
use Chill\MainBundle\Export\ExportManager;
use Chill\MainBundle\Form\Type\Export\FilterType;
use Chill\MainBundle\Form\Type\Export\AggregatorType;
use Symfony\Component\Form\Extension\Core\Type\FormType;
/**
*
@@ -90,6 +91,12 @@ class ExportType extends AbstractType
$builder->add($aggregatorBuilder);
// add export form
$exportBuilder = $builder->create(self::EXPORT_KEY, FormType::class, array('compound' => true));
$this->exportManager->getExport($options['export_alias'])
->buildForm($exportBuilder);
$builder->add($exportBuilder);
$builder->add(self::PICK_FORMATTER_KEY, PickFormatterType::class, array(
'export_alias' => $options['export_alias']
));