made quotes TextAreaField
This commit is contained in:
parent
db245e6d35
commit
e8327f9de0
@ -5,7 +5,7 @@ namespace App\Controller\Admin;
|
||||
use App\Entity\Quotes;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
|
||||
|
||||
class QuotesCrudController extends AbstractCrudController
|
||||
@ -21,7 +21,7 @@ class QuotesCrudController extends AbstractCrudController
|
||||
->onlyOnIndex();
|
||||
yield TextField::new(propertyName: 'quote')
|
||||
->onlyOnIndex();
|
||||
yield TextEditorField::new(propertyName: 'quote')
|
||||
yield TextAreaField::new(propertyName: 'quote')
|
||||
->onlyOnForms();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user