mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-24 00:20:28 +00:00
changed email fields with the email type and added required parameter on some stuff
This commit is contained in:
parent
04aaa199b7
commit
4d6e818e40
4 changed files with 6 additions and 5 deletions
|
@ -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')
|
||||
;
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ class ForgotPasswordType extends AbstractType
|
|||
{
|
||||
$builder
|
||||
->add('email', 'email', array(
|
||||
'required' => true,
|
||||
'constraints' => array(
|
||||
new Constraints\Email(),
|
||||
new Constraints\NotBlank(),
|
||||
|
|
|
@ -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')
|
||||
;
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue