|
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
namespace Lc\CaracoleBundle\Controller\Section; |
|
|
|
|
|
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; |
|
|
@@ -25,7 +26,6 @@ abstract class SectionAdminController extends AbstractAdminController |
|
|
|
[ |
|
|
|
FormField::addPanel('general'), |
|
|
|
TextField::new('title'), |
|
|
|
//AssociationField::new('merchant'), |
|
|
|
ChoiceField::new('cycle') |
|
|
|
->setRequired(true) |
|
|
|
->setChoices( |
|
|
@@ -44,8 +44,8 @@ abstract class SectionAdminController extends AbstractAdminController |
|
|
|
->hideOnIndex(), |
|
|
|
CKEditorField::new('description') |
|
|
|
->hideOnIndex(), |
|
|
|
StatusField::new('status'), |
|
|
|
BooleanField::new('isDefault', 'Section par défaut'), |
|
|
|
StatusField::new('status'), |
|
|
|
], |
|
|
|
$panel |
|
|
|
); |