protected function configureFormFields(FormMapper $formMapper)
 {
     $formMapper->with('General')->add('username', 'text', array('label' => 'Username'))->add('email', 'email', array('label' => 'E-mail'))->add('lastIp', 'text', array('label' => 'last Ip-address', 'required' => false))->end()->with('Profile')->add('location', 'country', array('required' => false, 'attr' => array('class' => 'form-control')))->add('skype', 'text', array('label' => 'Skype', 'required' => false))->add('dateOfBirth', 'date', array('years' => range(1910, 2014), 'label' => 'Date of birth', 'required' => false))->add('gender', 'choice', array('required' => false, 'multiple' => false, 'choices' => User::getGenderList(), 'attr' => array('class' => 'form-control')))->end()->with('Groups')->add('groups', null, array('required' => false, 'multiple' => true, 'attr' => array('class' => 'form-control')))->end()->with('Forums')->add('awards', null, array('required' => false, 'multiple' => true, 'attr' => array('class' => 'form-control')))->end();
 }
 protected function buildUserForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('phone', 'text', array('label' => 'phone number', 'required' => false))->add('email', 'email', array('label' => 'form.email', 'translation_domain' => 'FOSUserBundle'))->add('skype', 'text', array('label' => 'skype'))->add('forumText', 'text', array('required' => false))->add('dateOfBirth', 'date', array('label' => 'Date of birth', 'years' => range(1910, 2014), 'attr' => array('class' => 'sf_date')))->add('gender', 'choice', array('multiple' => false, 'choices' => User::getGenderList()))->add('timezone', 'timezone', array('label' => 'timezone'))->add('location', 'country', array('label' => 'country'))->add('biography', 'textarea', array('label' => 'biography', 'attr' => array('class' => 'redactor-init')));
 }