diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-04-15 16:50:20 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-04-15 16:50:20 +0200 |
commit | 4d6e818e406417295298e76529ef761ddd8b1385 (patch) | |
tree | ea3c9a1b264d8493cf82b555dc415dc0da5180b8 /src/Wallabag | |
parent | 04aaa199b780d71ead5f1d2ec39e38085431336d (diff) | |
download | wallabag-4d6e818e406417295298e76529ef761ddd8b1385.tar.gz wallabag-4d6e818e406417295298e76529ef761ddd8b1385.tar.zst wallabag-4d6e818e406417295298e76529ef761ddd8b1385.zip |
changed email fields with the email type and added required parameter on some stuff
Diffstat (limited to 'src/Wallabag')
4 files changed, 6 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EntryType.php b/src/Wallabag/CoreBundle/Form/Type/EntryType.php index cfd64473..9a64def5 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EntryType.php | |||
@@ -10,7 +10,7 @@ class EntryType extends AbstractType | |||
10 | public function buildForm(FormBuilderInterface $builder, array $options) | 10 | public function buildForm(FormBuilderInterface $builder, array $options) |
11 | { | 11 | { |
12 | $builder | 12 | $builder |
13 | ->add('url', 'url') | 13 | ->add('url', 'url', array('required' => true)) |
14 | ->add('save', 'submit') | 14 | ->add('save', 'submit') |
15 | ; | 15 | ; |
16 | } | 16 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php b/src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php index c278b84f..4cc16a50 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ForgotPasswordType.php | |||
@@ -20,6 +20,7 @@ class ForgotPasswordType extends AbstractType | |||
20 | { | 20 | { |
21 | $builder | 21 | $builder |
22 | ->add('email', 'email', array( | 22 | ->add('email', 'email', array( |
23 | 'required' => true, | ||
23 | 'constraints' => array( | 24 | 'constraints' => array( |
24 | new Constraints\Email(), | 25 | new Constraints\Email(), |
25 | new Constraints\NotBlank(), | 26 | new Constraints\NotBlank(), |
diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php index 313a9aae..b7ebe8c2 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php | |||
@@ -11,7 +11,7 @@ class NewUserType 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('username', 'text') | 14 | ->add('username', 'text', array('required' => true)) |
15 | ->add('password', 'password', array( | 15 | ->add('password', 'password', array( |
16 | 'constraints' => array( | 16 | 'constraints' => array( |
17 | new Constraints\Length(array( | 17 | new Constraints\Length(array( |
@@ -21,7 +21,7 @@ class NewUserType extends AbstractType | |||
21 | new Constraints\NotBlank(), | 21 | new Constraints\NotBlank(), |
22 | ), | 22 | ), |
23 | )) | 23 | )) |
24 | ->add('email', 'text') | 24 | ->add('email', 'email') |
25 | ->add('save', 'submit') | 25 | ->add('save', 'submit') |
26 | ; | 26 | ; |
27 | } | 27 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php index 617722db..8fead9a1 100644 --- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php +++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php | |||
@@ -10,8 +10,8 @@ class UserInformationType extends AbstractType | |||
10 | public function buildForm(FormBuilderInterface $builder, array $options) | 10 | public function buildForm(FormBuilderInterface $builder, array $options) |
11 | { | 11 | { |
12 | $builder | 12 | $builder |
13 | ->add('name', 'text') | 13 | ->add('name', 'text', array('required' => true)) |
14 | ->add('email', 'text') | 14 | ->add('email', 'email') |
15 | ->add('save', 'submit') | 15 | ->add('save', 'submit') |
16 | ; | 16 | ; |
17 | } | 17 | } |