Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

39 linhas
1.2KB

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