|
12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
-
- namespace Lc\CaracoleBundle\Controller\PointSale;
-
- use EasyCorp\Bundle\EasyAdminBundle\Field\FormField;
- use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
- use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
- use Lc\CaracoleBundle\Controller\AdminControllerTrait;
- use Lc\CaracoleBundle\Field\Address\AddressField;
- use Lc\SovBundle\Controller\AbstractAdminController;
- use Lc\SovBundle\Field\StatusField;
-
- abstract class PointSaleAdminController extends AbstractAdminController
- {
- use AdminControllerTrait;
-
- public function configureFields(string $pageName): iterable
- {
- $panel = parent::configureFields($pageName);
-
- return array_merge(
- [
- FormField::addPanel('general'),
- TextField::new('title'),
- NumberField::new('orderAmountMin')
- ->setCustomOption('appendHtml','€')
- ->hideOnIndex(),
- StatusField::new('status'),
- FormField::addPanel('address'),
- AddressField::new('address')
- ->setRequired(true)
- ],
- $panel
- );
- }
-
- }
|