Add override level checkbox

This commit is contained in:
Ryan Prather 2024-12-10 22:52:31 -05:00
parent 354d1fbde3
commit 1eac26399f

View File

@ -6,6 +6,7 @@ use App\Entity\User;
use App\Entity\UserCase; use App\Entity\UserCase;
use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\OptionsResolver\OptionsResolver;
@ -18,6 +19,9 @@ class UserCaseFormType extends AbstractType
'class' => User::class, 'class' => User::class,
'choice_label' => 'name', 'choice_label' => 'name',
]) ])
->add('overrideLevel', CheckboxType::class, [
'mapped' => false
])
; ;
} }