Ver código fonte

AdminLte intégration page edition

tags/0.1
Fab 3 anos atrás
pai
commit
3bd7b62416
1 arquivos alterados com 2 adições e 4 exclusões
  1. +2
    -4
      Field/BooleanField.php

+ 2
- 4
Field/BooleanField.php Ver arquivo

@@ -5,6 +5,7 @@ namespace Lc\SovBundle\Field;
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
use Lc\SovBundle\Form\Type\FileManagerType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\TextType;

@@ -21,10 +22,7 @@ final class BooleanField implements FieldInterface
->setProperty($propertyName)
->setLabel($label)
->setTemplatePath('@LcSov/adminlte/crud/field/toggle.html.twig')
->setFormType(ChoiceType::class)
->setFormTypeOption('expanded', false)
->setFormTypeOption('multiple', false)
->setFormTypeOption('choices', ['En ligne' => 1, 'Hors ligne' => 0]);
->setFormType(CheckboxType::class);
}

}

Carregando…
Cancelar
Salvar