|
|
|
|
|
|
|
|
use Lc\SovBundle\Field\CKEditorField; |
|
|
use Lc\SovBundle\Field\CKEditorField; |
|
|
use Lc\SovBundle\Field\FileManagerField; |
|
|
use Lc\SovBundle\Field\FileManagerField; |
|
|
use Lc\SovBundle\Field\GalleryManagerField; |
|
|
use Lc\SovBundle\Field\GalleryManagerField; |
|
|
|
|
|
use Lc\SovBundle\Field\ImageManagerField; |
|
|
|
|
|
use Lc\SovBundle\Field\StatusField; |
|
|
|
|
|
|
|
|
class PageCrudController extends AbstractCrudController |
|
|
class PageCrudController extends AbstractCrudController |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
return [ |
|
|
return [ |
|
|
TextField::new('title'), |
|
|
TextField::new('title'), |
|
|
CKEditorField::new('description'), |
|
|
CKEditorField::new('description'), |
|
|
FileManagerField::new('image'), |
|
|
|
|
|
ChoiceField::new('status') |
|
|
|
|
|
->setChoices(['En ligne' => 1, 'Hors ligne' => 0]) |
|
|
|
|
|
->setFormTypeOption('expanded', false) |
|
|
|
|
|
->setFormTypeOption('multiple', false) |
|
|
|
|
|
->setCustomOption('widget', false) |
|
|
|
|
|
->setTemplatePath('@LcSov/adminlte/crud/field/status.html.twig'), |
|
|
|
|
|
|
|
|
ImageManagerField::new('image'), |
|
|
|
|
|
StatusField::new('status'), |
|
|
GalleryManagerField::new('gallery'), |
|
|
GalleryManagerField::new('gallery'), |
|
|
TextField::new('devAlias'), |
|
|
TextField::new('devAlias'), |
|
|
|
|
|
|
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|