This commit is contained in:
parent
e4803a25d7
commit
9651c62502
0
public/uploaded/cfc86925-f58b-409e-b0f2-0ec593a9ef42.webp
Normal file → Executable file
0
public/uploaded/cfc86925-f58b-409e-b0f2-0ec593a9ef42.webp
Normal file → Executable file
Before Width: | Height: | Size: 296 KiB After Width: | Height: | Size: 296 KiB |
0
public/uploaded/da1a81e5-f2fc-4f12-81cd-f428e32ccc9e (1).webp
Normal file → Executable file
0
public/uploaded/da1a81e5-f2fc-4f12-81cd-f428e32ccc9e (1).webp
Normal file → Executable file
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 191 KiB |
|
@ -12,6 +12,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\ImageField;
|
||||||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
|
||||||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField;
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField;
|
||||||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
|
||||||
|
use EasyCorp\Bundle\EasyAdminBundle\Field\CodeEditorField;
|
||||||
use EasyCorp\Bundle\EasyAdminBundle\Filter\EntityFilter;
|
use EasyCorp\Bundle\EasyAdminBundle\Filter\EntityFilter;
|
||||||
|
|
||||||
class PostCrudController extends AbstractCrudController
|
class PostCrudController extends AbstractCrudController
|
||||||
|
@ -31,7 +32,7 @@ class PostCrudController extends AbstractCrudController
|
||||||
TextField::new('title', 'عنوان'),
|
TextField::new('title', 'عنوان'),
|
||||||
TextareaField::new('intro', 'خلاصه مطلب')->hideOnIndex(),
|
TextareaField::new('intro', 'خلاصه مطلب')->hideOnIndex(),
|
||||||
TextEditorField::new('body', 'متن')->hideOnIndex(),
|
TextEditorField::new('body', 'متن')->hideOnIndex(),
|
||||||
TextEditorField::new('plain', 'متن HTML')->hideOnIndex(),
|
CodeEditorField::new('plain', 'کد HTML')->hideOnIndex(),
|
||||||
TextField::new('keywords', 'کلیدواژهها'),
|
TextField::new('keywords', 'کلیدواژهها'),
|
||||||
ImageField::new('mainPic', 'تصویر شاخص')
|
ImageField::new('mainPic', 'تصویر شاخص')
|
||||||
->setUploadDir('/public/uploaded/')
|
->setUploadDir('/public/uploaded/')
|
||||||
|
|
Loading…
Reference in a new issue