|
|
@@ -9,7 +9,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; |
|
|
|
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\CKEditorField; |
|
|
|
use Lc\SovBundle\Field\StatusField; |
|
|
@@ -29,7 +29,7 @@ class SectionAdminController extends AbstractAdminController |
|
|
|
[ |
|
|
|
FormField::addPanel('general'), |
|
|
|
TextField::new('title'), |
|
|
|
AssociationField::new('merchant'), |
|
|
|
//AssociationField::new('merchant'), |
|
|
|
ChoiceField::new('cycle') |
|
|
|
->setRequired(true) |
|
|
|
->setChoices( |
|
|
@@ -49,6 +49,7 @@ class SectionAdminController extends AbstractAdminController |
|
|
|
CKEditorField::new('description') |
|
|
|
->hideOnIndex(), |
|
|
|
StatusField::new('status'), |
|
|
|
BooleanField::new('isDefault', 'Section par défaut'), |
|
|
|
], |
|
|
|
$panel |
|
|
|
); |