Skip to content
Browse files

Tweak form types

  • Loading branch information...
1 parent 1b775f6 commit 481f57bae54b69b01e79bff568d389c5935c622e @rande rande committed
Showing with 6 additions and 6 deletions.
  1. +3 −3 Admin/Model/UserAdmin.php
  2. +3 −3 Form/Type/ProfileType.php
View
6 Admin/Model/UserAdmin.php
@@ -119,9 +119,9 @@ protected function configureFormFields(FormMapper $formMapper)
->add('lastname', null, array('required' => false))
->add('website', 'url', array('required' => false))
->add('biography', 'text', array('required' => false))
- ->add('gender', null, array('required' => false))
- ->add('locale', null, array('required' => false))
- ->add('timezone', null, array('required' => false))
+ ->add('gender', 'textarea', array('required' => false))
+ ->add('locale', 'locale', array('required' => false))
+ ->add('timezone', 'timezone', array('required' => false))
->add('phone', null, array('required' => false))
->end()
->with('Social')
View
6 Form/Type/ProfileType.php
@@ -40,9 +40,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add('lastname', null, array('required' => false))
->add('dateOfBirth', 'birthday', array('required' => false))
->add('website', null, array('required' => false))
- ->add('biography', null, array('required' => false))
- ->add('locale', null, array('required' => false))
- ->add('timezone', null, array('required' => false))
+ ->add('biography', 'textarea', array('required' => false))
+ ->add('locale', 'locale', array('required' => false))
+ ->add('timezone', 'timezone', array('required' => false))
->add('phone', null, array('required' => false))
;
}

0 comments on commit 481f57b

Please sign in to comment.
Something went wrong with that request. Please try again.