From 09d74ed327e4004bf3e16a014b5a88bf0b162b9b Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Tue, 29 Apr 2025 07:55:17 +0200 Subject: [PATCH] Add lost file --- src/Form/AddCandidatesFormType.php | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/Form/AddCandidatesFormType.php diff --git a/src/Form/AddCandidatesFormType.php b/src/Form/AddCandidatesFormType.php new file mode 100644 index 0000000..22a02f4 --- /dev/null +++ b/src/Form/AddCandidatesFormType.php @@ -0,0 +1,33 @@ + */ +class AddCandidatesFormType extends AbstractType +{ + public function __construct(private readonly TranslatorInterface $translator) {} + + public function buildForm(FormBuilderInterface $builder, array $options): void + { + $builder + ->add('candidates', TextareaType::class, [ + 'label' => $this->translator->trans('Candidates'), + ]) + ; + } + + public function configureOptions(OptionsResolver $resolver): void + { + $resolver->setDefaults([ + // Configure your form options here + ]); + } +}