handle zipcode and descrition in crud

This commit is contained in:
Jannis Portmann 2021-04-26 23:50:11 +02:00
parent 96e35c3b90
commit 19a8630a6d

View file

@ -9,6 +9,8 @@ use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextAreaField;
use EasyCorp\Bundle\EasyAdminBundle\Field\DateTimeField;
class OfferingCrudController extends AbstractCrudController
@ -25,6 +27,8 @@ class OfferingCrudController extends AbstractCrudController
yield TextField::new('title'),
yield DateTimeField::new('createdAt'),
yield TextField::new('photoFilename'),
yield IntegerField::new('zipcode'),
yield TextAreaField::new('description'),
];
}
}