|
|
|
|
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; |
|
|
use Lc\SovBundle\Controller\AbstractAdminController; |
|
|
|
|
|
|
|
|
use Lc\CaracoleBundle\Controller\AbstractAdminController; |
|
|
use Lc\SovBundle\Field\BooleanField; |
|
|
use Lc\SovBundle\Field\BooleanField; |
|
|
use Lc\SovBundle\Field\CKEditorField; |
|
|
use Lc\SovBundle\Field\CKEditorField; |
|
|
use Lc\SovBundle\Field\StatusField; |
|
|
use Lc\SovBundle\Field\StatusField; |
|
|
|
|
|
|
|
|
[ |
|
|
[ |
|
|
FormField::addPanel('general'), |
|
|
FormField::addPanel('general'), |
|
|
TextField::new('title'), |
|
|
TextField::new('title'), |
|
|
AssociationField::new('merchant'), |
|
|
|
|
|
|
|
|
//AssociationField::new('merchant'), |
|
|
ChoiceField::new('cycle') |
|
|
ChoiceField::new('cycle') |
|
|
->setRequired(true) |
|
|
->setRequired(true) |
|
|
->setChoices( |
|
|
->setChoices( |
|
|
|
|
|
|
|
|
CKEditorField::new('description') |
|
|
CKEditorField::new('description') |
|
|
->hideOnIndex(), |
|
|
->hideOnIndex(), |
|
|
StatusField::new('status'), |
|
|
StatusField::new('status'), |
|
|
|
|
|
BooleanField::new('isDefault', 'Section par défaut'), |
|
|
], |
|
|
], |
|
|
$panel |
|
|
$panel |
|
|
); |
|
|
); |