mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
improve layout and messages for export
This commit is contained in:
@@ -23,7 +23,7 @@ use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Chill\MainBundle\Export\ExportManager;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -48,14 +48,9 @@ class AggregatorType extends AbstractType
|
||||
$aggregator = $this->exportManager->getAggregator($options['aggregator_alias']);
|
||||
|
||||
$builder
|
||||
->add('enabled', ChoiceType::class, array(
|
||||
'choices' => array(
|
||||
'enabled' => true,
|
||||
'disabled' => false
|
||||
),
|
||||
'multiple' => false,
|
||||
'expanded' => true,
|
||||
'choices_as_values' => true,
|
||||
->add('enabled', CheckboxType::class, array(
|
||||
'value' => true,
|
||||
'required' => false,
|
||||
'data' => false
|
||||
));
|
||||
|
||||
|
@@ -23,6 +23,7 @@ use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Chill\MainBundle\Export\ExportManager;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -47,15 +48,10 @@ class FilterType extends AbstractType
|
||||
$filter = $this->exportManager->getFilter($options['filter_alias']);
|
||||
|
||||
$builder
|
||||
->add('enabled', 'choice', array(
|
||||
'choices' => array(
|
||||
'enabled' => true,
|
||||
'disabled' => false
|
||||
),
|
||||
'multiple' => false,
|
||||
'expanded' => true,
|
||||
'choices_as_values' => true,
|
||||
'data' => false
|
||||
->add('enabled', CheckboxType::class, array(
|
||||
'value' => true,
|
||||
'data' => false,
|
||||
'required' => false
|
||||
));
|
||||
|
||||
$filterFormBuilder = $builder->create('form', null, array(
|
||||
|
Reference in New Issue
Block a user