aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Form')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/EntryType.php2
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php1
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/NewUserType.php4
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/UserInformationType.php2
4 files changed, 5 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EntryType.php b/src/Wallabag/CoreBundle/Form/Type/EntryType.php
index 839bc25c..0532bf10 100644
--- a/src/Wallabag/CoreBundle/Form/Type/EntryType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/EntryType.php
@@ -11,7 +11,7 @@ class EntryType extends AbstractType
11 public function buildForm(FormBuilderInterface $builder, array $options) 11 public function buildForm(FormBuilderInterface $builder, array $options)
12 { 12 {
13 $builder 13 $builder
14 ->add('url', 'url') 14 ->add('url', 'url', array('required' => true))
15 ->add('save', 'submit') 15 ->add('save', 'submit')
16 ; 16 ;
17 } 17 }
diff --git a/src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php b/src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php
index 2ee24b8f..9e95eb47 100644
--- a/src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php
@@ -21,6 +21,7 @@ class ForgotPasswordType extends AbstractType
21 { 21 {
22 $builder 22 $builder
23 ->add('email', 'email', array( 23 ->add('email', 'email', array(
24 'required' => true,
24 'constraints' => array( 25 'constraints' => array(
25 new Constraints\Email(), 26 new Constraints\Email(),
26 new Constraints\NotBlank(), 27 new Constraints\NotBlank(),
diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php
index da30ccd9..a12fff2b 100644
--- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php
@@ -12,7 +12,7 @@ class NewUserType extends AbstractType
12 public function buildForm(FormBuilderInterface $builder, array $options) 12 public function buildForm(FormBuilderInterface $builder, array $options)
13 { 13 {
14 $builder 14 $builder
15 ->add('username', 'text') 15 ->add('username', 'text', array('required' => true))
16 ->add('password', 'password', array( 16 ->add('password', 'password', array(
17 'constraints' => array( 17 'constraints' => array(
18 new Constraints\Length(array( 18 new Constraints\Length(array(
@@ -22,7 +22,7 @@ class NewUserType extends AbstractType
22 new Constraints\NotBlank(), 22 new Constraints\NotBlank(),
23 ), 23 ),
24 )) 24 ))
25 ->add('email', 'text') 25 ->add('email', 'email')
26 ->add('save', 'submit') 26 ->add('save', 'submit')
27 ; 27 ;
28 } 28 }
diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
index c088fdd0..f0367d14 100644
--- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
@@ -12,7 +12,7 @@ class UserInformationType extends AbstractType
12 { 12 {
13 $builder 13 $builder
14 ->add('name', 'text') 14 ->add('name', 'text')
15 ->add('email', 'text') 15 ->add('email', 'email')
16 ->add('save', 'submit') 16 ->add('save', 'submit')
17 ; 17 ;
18 } 18 }