diff --git a/src/AppBundle/Controller/AdminController.php b/src/AppBundle/Controller/AdminController.php index 6a7ec1a80..a58f2f798 100644 --- a/src/AppBundle/Controller/AdminController.php +++ b/src/AppBundle/Controller/AdminController.php @@ -25,7 +25,6 @@ use Symfony\Component\Console\Output\BufferedOutput; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\EventDispatcher\EventDispatcher; -use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\FileType; diff --git a/src/AppBundle/Form/BeneficiaryType.php b/src/AppBundle/Form/BeneficiaryType.php index d40d3c5e1..0b8fd9cf2 100644 --- a/src/AppBundle/Form/BeneficiaryType.php +++ b/src/AppBundle/Form/BeneficiaryType.php @@ -10,6 +10,7 @@ use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; +use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormEvent; @@ -69,6 +70,11 @@ public function buildForm(FormBuilderInterface $builder, array $options) 'required' => true, 'label' => 'Equipe volante' )); + } else { + $form->add('flying', HiddenType::class, [ + 'data' => '0', + 'label' => false + ]); } $form->add('commissions', EntityType::class, array( 'class' => 'AppBundle:Commission', diff --git a/src/AppBundle/Form/NoteType.php b/src/AppBundle/Form/NoteType.php index d4e385c95..d272de0fd 100644 --- a/src/AppBundle/Form/NoteType.php +++ b/src/AppBundle/Form/NoteType.php @@ -4,7 +4,6 @@ use AppBundle\Entity\Note; use Symfony\Component\Form\AbstractType; -use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; diff --git a/src/AppBundle/Form/ShiftType.php b/src/AppBundle/Form/ShiftType.php index 80a09efca..c8c0f75c8 100644 --- a/src/AppBundle/Form/ShiftType.php +++ b/src/AppBundle/Form/ShiftType.php @@ -3,10 +3,10 @@ namespace AppBundle\Form; use AppBundle\Entity\Shift; +use AppBundle\Form\JobHiddenType; use AppBundle\Repository\JobRepository; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; -use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\Extension\Core\Type\IntegerType; use Symfony\Component\Form\Extension\Core\Type\DateTimeType; use Symfony\Component\Form\FormBuilderInterface; diff --git a/src/AppBundle/Form/TimeLogType.php b/src/AppBundle/Form/TimeLogType.php index 1b4b69da2..394ccb612 100644 --- a/src/AppBundle/Form/TimeLogType.php +++ b/src/AppBundle/Form/TimeLogType.php @@ -4,7 +4,6 @@ use AppBundle\Entity\TimeLog; use Symfony\Component\Form\AbstractType; -use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\Extension\Core\Type\NumberType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Component\Form\Extension\Core\Type\TextType;