|
|
|
|
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; |
|
|
|
|
|
use Lc\SovBundle\Field\CKEditorField; |
|
|
use Lc\SovBundle\Field\CollectionField; |
|
|
use Lc\SovBundle\Field\CollectionField; |
|
|
use Lc\SovBundle\Field\ImageManagerField; |
|
|
use Lc\SovBundle\Field\ImageManagerField; |
|
|
use Lc\SovBundle\Field\StatusField; |
|
|
use Lc\SovBundle\Field\StatusField; |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
return [ |
|
|
return [ |
|
|
'id' => IntegerField::new('id')->onlyOnIndex()->setSortable(true), |
|
|
'id' => IntegerField::new('id')->onlyOnIndex()->setSortable(true), |
|
|
|
|
|
'title' => TextField::new('title'), |
|
|
|
|
|
'description' => CKEditorField::new('description'), |
|
|
|
|
|
'image' => ImageManagerField::new('image'), |
|
|
'metaTitle' => TextField::new('metaTitle') |
|
|
'metaTitle' => TextField::new('metaTitle') |
|
|
->setLabel('Meta : title') |
|
|
->setLabel('Meta : title') |
|
|
->setHelp('Affiché dans les résultats de recherche Google'), |
|
|
->setHelp('Affiché dans les résultats de recherche Google'), |