Skip to content

Commit

Permalink
Répare le formulaire de création d'un nouveau membre (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Dec 1, 2023
1 parent 95cb34c commit f563b64
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/AppBundle/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/AppBundle/Form/BeneficiaryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand Down
1 change: 0 additions & 1 deletion src/AppBundle/Form/NoteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/AppBundle/Form/ShiftType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/AppBundle/Form/TimeLogType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f563b64

Please sign in to comment.