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.

UnitAdminController.php 988B

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