You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Product;
  3. use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
  4. use EasyCorp\Bundle\EasyAdminBundle\Field\FormField;
  5. use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
  6. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  7. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  8. use Lc\CaracoleBundle\Field\Address\AddressField;
  9. use Lc\SovBundle\Controller\AbstractAdminController;
  10. use Lc\SovBundle\Field\BooleanField;
  11. use Lc\SovBundle\Field\CKEditorField;
  12. use Lc\SovBundle\Field\StatusField;
  13. abstract class ProductCategoryAdminController extends AbstractAdminController
  14. {
  15. use AdminControllerTrait;
  16. public function configureFields(string $pageName): iterable
  17. {
  18. return array_merge(
  19. [
  20. FormField::addPanel('general'),
  21. TextField::new('title'),
  22. AssociationField::new('parent'),
  23. CKEditorField::new('description'),
  24. BooleanField::new('saleStatus'),
  25. StatusField::new('status'),
  26. ],
  27. $this->getSeoPanel(),
  28. $this->getConfPanel()
  29. );
  30. }
  31. }