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