handle zipcode and descrition in crud
This commit is contained in:
parent
96e35c3b90
commit
19a8630a6d
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,8 @@ use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
|
||||||
use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
|
use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
|
||||||
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
|
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
|
||||||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
|
||||||
|
use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField;
|
||||||
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextAreaField;
|
||||||
use EasyCorp\Bundle\EasyAdminBundle\Field\DateTimeField;
|
use EasyCorp\Bundle\EasyAdminBundle\Field\DateTimeField;
|
||||||
|
|
||||||
class OfferingCrudController extends AbstractCrudController
|
class OfferingCrudController extends AbstractCrudController
|
||||||
|
@ -25,6 +27,8 @@ class OfferingCrudController extends AbstractCrudController
|
||||||
yield TextField::new('title'),
|
yield TextField::new('title'),
|
||||||
yield DateTimeField::new('createdAt'),
|
yield DateTimeField::new('createdAt'),
|
||||||
yield TextField::new('photoFilename'),
|
yield TextField::new('photoFilename'),
|
||||||
|
yield IntegerField::new('zipcode'),
|
||||||
|
yield TextAreaField::new('description'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue