]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Form/RegisterType.php
Switch to new header system
[airbundle] / Form / RegisterType.php
index 83c80b59daafc98062cdcfe1ee7dc88b022f86fa..d34fc0a4d3bd3afd4903a5726119a626c2b946a4 100644 (file)
@@ -13,10 +13,7 @@ class RegisterType extends \Rapsys\UserBundle\Form\RegisterType {
         */
        public function buildForm(FormBuilderInterface $builder, array $options) {
                return parent::buildForm($builder, $options)
         */
        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]);
        }
 
        /**
        }
 
        /**