|
|
|
|
|
|
|
|
namespace App\Controller\Admin; |
|
|
namespace App\Controller\Admin; |
|
|
|
|
|
|
|
|
use App\Entity\Site\Page; |
|
|
use App\Entity\Site\Page; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Assets; |
|
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField; |
|
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField; |
|
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; |
|
|
use Lc\SovBundle\Controller\Admin\AbstractCrudController; |
|
|
use Lc\SovBundle\Controller\Admin\AbstractCrudController; |
|
|
use Lc\SovBundle\Field\CKEditorField; |
|
|
use Lc\SovBundle\Field\CKEditorField; |
|
|
use Lc\SovBundle\Field\FileManagerField; |
|
|
|
|
|
use Lc\SovBundle\Field\GalleryManagerField; |
|
|
use Lc\SovBundle\Field\GalleryManagerField; |
|
|
use Lc\SovBundle\Field\ImageManagerField; |
|
|
use Lc\SovBundle\Field\ImageManagerField; |
|
|
use Lc\SovBundle\Field\StatusField; |
|
|
use Lc\SovBundle\Field\StatusField; |
|
|
|
|
|
|
|
|
TextField::new('title'), |
|
|
TextField::new('title'), |
|
|
CKEditorField::new('description'), |
|
|
CKEditorField::new('description'), |
|
|
ImageManagerField::new('image'), |
|
|
ImageManagerField::new('image'), |
|
|
StatusField::new('status'), |
|
|
|
|
|
|
|
|
StatusField::new('status', null, true), |
|
|
GalleryManagerField::new('gallery'), |
|
|
GalleryManagerField::new('gallery'), |
|
|
TextField::new('devAlias'), |
|
|
TextField::new('devAlias'), |
|
|
]; |
|
|
]; |