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 + ]); + } +}