improve layout and messages for export

This commit is contained in:
2016-11-24 22:48:11 +01:00
parent 6c1c481e1a
commit d33500f764
8 changed files with 53 additions and 30 deletions

View File

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

View File

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