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.

30 satır
860B

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Config;
  3. use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
  4. use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField;
  5. use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
  6. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  7. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  8. use Lc\SovBundle\Controller\AbstractAdminController;
  9. abstract class TaxRateAdminController extends AbstractAdminController
  10. {
  11. use AdminControllerTrait;
  12. public function configureCrud(Crud $crud): Crud
  13. {
  14. return $crud->setSearchFields(['id', 'title', 'value']);
  15. }
  16. public function configureFields(string $pageName): iterable
  17. {
  18. return [
  19. IntegerField::new('id', 'ID')->hideOnForm(),
  20. TextField::new('title'),
  21. NumberField::new('value')
  22. ];
  23. }
  24. }