mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-30 10:38:25 +00:00
commit
98510a4189
4 changed files with 5 additions and 4 deletions
|
@ -10,7 +10,7 @@ class EntryType extends AbstractType
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
$builder
|
$builder
|
||||||
->add('url', 'url')
|
->add('url', 'url', array('required' => true))
|
||||||
->add('save', 'submit')
|
->add('save', 'submit')
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ class ForgotPasswordType extends AbstractType
|
||||||
{
|
{
|
||||||
$builder
|
$builder
|
||||||
->add('email', 'email', array(
|
->add('email', 'email', array(
|
||||||
|
'required' => true,
|
||||||
'constraints' => array(
|
'constraints' => array(
|
||||||
new Constraints\Email(),
|
new Constraints\Email(),
|
||||||
new Constraints\NotBlank(),
|
new Constraints\NotBlank(),
|
||||||
|
|
|
@ -11,7 +11,7 @@ class NewUserType extends AbstractType
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
$builder
|
$builder
|
||||||
->add('username', 'text')
|
->add('username', 'text', array('required' => true))
|
||||||
->add('password', 'password', array(
|
->add('password', 'password', array(
|
||||||
'constraints' => array(
|
'constraints' => array(
|
||||||
new Constraints\Length(array(
|
new Constraints\Length(array(
|
||||||
|
@ -21,7 +21,7 @@ class NewUserType extends AbstractType
|
||||||
new Constraints\NotBlank(),
|
new Constraints\NotBlank(),
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->add('email', 'text')
|
->add('email', 'email')
|
||||||
->add('save', 'submit')
|
->add('save', 'submit')
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ class UserInformationType extends AbstractType
|
||||||
{
|
{
|
||||||
$builder
|
$builder
|
||||||
->add('name', 'text')
|
->add('name', 'text')
|
||||||
->add('email', 'text')
|
->add('email', 'email')
|
||||||
->add('save', 'submit')
|
->add('save', 'submit')
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue