aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2015-04-15 17:29:28 +0200
committerJeremy Benoist <j0k3r@users.noreply.github.com>2015-04-15 17:29:28 +0200
commit98510a4189186c8dcc3f1bf38843d935ed3d1859 (patch)
treea5a2186fb51bd2bf999c58606f3e42510eb4200d /src/Wallabag/CoreBundle/Form
parent04aaa199b780d71ead5f1d2ec39e38085431336d (diff)
parentc7d3bf1671fbd2f69d58394e6478e7c532f1f6e4 (diff)
downloadwallabag-98510a4189186c8dcc3f1bf38843d935ed3d1859.tar.gz
wallabag-98510a4189186c8dcc3f1bf38843d935ed3d1859.tar.zst
wallabag-98510a4189186c8dcc3f1bf38843d935ed3d1859.zip
Merge pull request #1180 from wallabag/v2patch
Add some required
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 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..3d6df510 100644
--- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
@@ -11,7 +11,7 @@ class UserInformationType extends AbstractType
11 { 11 {
12 $builder 12 $builder
13 ->add('name', 'text') 13 ->add('name', 'text')
14 ->add('email', 'text') 14 ->add('email', 'email')
15 ->add('save', 'submit') 15 ->add('save', 'submit')
16 ; 16 ;
17 } 17 }