Aplicación para gestionar el WiFi y punto de luz en puertos.
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.
|
|
<?php
declare(strict_types=1);
namespace App\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;use Sonata\AdminBundle\Datagrid\DatagridMapper;use Sonata\AdminBundle\Datagrid\ListMapper;use Sonata\AdminBundle\Form\FormMapper;use Sonata\AdminBundle\Show\ShowMapper;
final class PresupuestosAdmin extends AbstractAdmin{
protected function configureDatagridFilters(DatagridMapper $filter): void { $filter ->add('id') ->add('cantidad') ; }
protected function configureListFields(ListMapper $list): void { $list ->add('id') ->add('cantidad') ->add(ListMapper::NAME_ACTIONS, null, [ 'actions' => [ 'show' => [], 'edit' => [], 'delete' => [], ], ]); }
protected function configureFormFields(FormMapper $form): void { $form ->add('id') ->add('cantidad') ; }
protected function configureShowFields(ShowMapper $show): void { $show ->add('id') ->add('cantidad') ; }}
|