made quotes TextAreaField

This commit is contained in:
tracer 2022-11-03 18:55:24 +01:00
parent db245e6d35
commit e8327f9de0
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ namespace App\Controller\Admin;
use App\Entity\Quotes; use App\Entity\Quotes;
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController; use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField; use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
class QuotesCrudController extends AbstractCrudController class QuotesCrudController extends AbstractCrudController
@ -21,7 +21,7 @@ class QuotesCrudController extends AbstractCrudController
->onlyOnIndex(); ->onlyOnIndex();
yield TextField::new(propertyName: 'quote') yield TextField::new(propertyName: 'quote')
->onlyOnIndex(); ->onlyOnIndex();
yield TextEditorField::new(propertyName: 'quote') yield TextAreaField::new(propertyName: 'quote')
->onlyOnForms(); ->onlyOnForms();
} }
} }