X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/f8b0360c4a8846308a684eced64b164adb1d8f0c..02cdcdba9168e9427d34357be90d862aee265e84:/Form/RegisterType.php diff --git a/Form/RegisterType.php b/Form/RegisterType.php index 83c80b5..d34fc0a 100644 --- a/Form/RegisterType.php +++ b/Form/RegisterType.php @@ -13,10 +13,7 @@ class RegisterType extends \Rapsys\UserBundle\Form\RegisterType { */ public function buildForm(FormBuilderInterface $builder, array $options) { return parent::buildForm($builder, $options) - #TODO: add url ? add text ? - ->add('phone', TelType::class, ['attr' => ['placeholder' => 'Your phone'], 'constraints' => [new NotBlank(['message' => 'Please provide your phone'])]]) - ->add('donation', UrlType::class, ['attr' => ['placeholder' => 'Your donation link']]) - ->add('site', UrlType::class, ['attr' => ['placeholder' => 'Your website']]); + ->add('phone', TelType::class, ['attr' => ['placeholder' => 'Your phone'], 'required' => false]); } /**