made quotes TextAreaField

This commit is contained in:
tracer 2022-11-03 18:55:24 +01:00
parent db245e6d35
commit e8327f9de0

View File

@ -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();
}
}