]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
changed email fields with the email type and added required parameter on some stuff
authorThomas Citharel <tcit@tcit.fr>
Wed, 15 Apr 2015 14:50:20 +0000 (16:50 +0200)
committerThomas Citharel <tcit@tcit.fr>
Wed, 15 Apr 2015 14:50:20 +0000 (16:50 +0200)
src/Wallabag/CoreBundle/Form/Type/EntryType.php
src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php
src/Wallabag/CoreBundle/Form/Type/NewUserType.php
src/Wallabag/CoreBundle/Form/Type/UserInformationType.php

index cfd64473511a1b16240ade86fcd690ceb043e182..9a64def5f0043d6d7a5914ef2218b0d307ecddb9 100644 (file)
@@ -10,7 +10,7 @@ class EntryType extends AbstractType
     public function buildForm(FormBuilderInterface $builder, array $options)
     {
         $builder
-            ->add('url', 'url')
+            ->add('url', 'url', array('required' => true))
             ->add('save', 'submit')
         ;
     }
index c278b84fa76e4e342356cb5340ac11d267df0fc5..4cc16a501a28c4a93453b0881fb6718d9bf8cafe 100644 (file)
@@ -20,6 +20,7 @@ class ForgotPasswordType extends AbstractType
     {
         $builder
             ->add('email', 'email', array(
+                'required' => true,
                 'constraints' => array(
                     new Constraints\Email(),
                     new Constraints\NotBlank(),
index 313a9aae8c9f8619b0c273815efd86572e533393..b7ebe8c24d50fca2b58cab66cdf43ee1f9b4a8ef 100644 (file)
@@ -11,7 +11,7 @@ class NewUserType extends AbstractType
     public function buildForm(FormBuilderInterface $builder, array $options)
     {
         $builder
-            ->add('username', 'text')
+            ->add('username', 'text', array('required' => true))
             ->add('password', 'password', array(
                 'constraints' => array(
                     new Constraints\Length(array(
@@ -21,7 +21,7 @@ class NewUserType extends AbstractType
                     new Constraints\NotBlank(),
                 ),
             ))
-            ->add('email', 'text')
+            ->add('email', 'email')
             ->add('save', 'submit')
         ;
     }
index 617722dbf4210e6ac5dfa9b82960b37146ae6ddf..8fead9a183d691d21274a56da09857e0f9172f4b 100644 (file)
@@ -10,8 +10,8 @@ class UserInformationType extends AbstractType
     public function buildForm(FormBuilderInterface $builder, array $options)
     {
         $builder
-            ->add('name', 'text')
-            ->add('email', 'text')
+            ->add('name', 'text', array('required' => true))
+            ->add('email', 'email')
             ->add('save', 'submit')
         ;
     }