diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php
index 844caf8..7f82acd 100644
--- a/src/Controller/UserController.php
+++ b/src/Controller/UserController.php
@@ -86,7 +86,7 @@ class UserController extends AbstractController {
}
return $this->render('user/signUp.html.twig', [
- 'registrationForm' => $form,
+ 'signUpForm' => $form->createView(),
]);
}
/**
diff --git a/src/Form/SignUpFormType.php b/src/Form/SignUpFormType.php
index 8767452..6ae5940 100644
--- a/src/Form/SignUpFormType.php
+++ b/src/Form/SignUpFormType.php
@@ -7,6 +7,7 @@ use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
+use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints\IsTrue;
@@ -71,6 +72,9 @@ class SignUpFormType extends AbstractType {
]
),
],
+ ])
+ ->add('submit', SubmitType::class, [
+ 'label' => 'Request account',
]);
}
}
diff --git a/templates/user/signUp.html.twig b/templates/user/signUp.html.twig
index 96c48b1..bc0d27f 100644
--- a/templates/user/signUp.html.twig
+++ b/templates/user/signUp.html.twig
@@ -9,13 +9,5 @@
You'll receive an email when your account would be accepted