public function buildForm(FormBuilderInterface $builder, array $options)
 {
     // if (class_exists('Symfony\Component\Security\Core\Validator\Constraints\UserPassword')) {
     //     $constraint = new UserPassword();
     // } else {
     //     // Symfony 2.1 support with the old constraint class
     //     $constraint = new OldUserPassword();
     // }
     $this->buildUserForm($builder, $options);
     $entity = new User();
     $themesList = array_values($entity->getAdminskins());
     $themesListKeys = array_keys($entity->getAdminskins());
     $builder->add('nom', 'text', array('translation_domain' => 'siteUserBundle', 'label' => 'fields.nom', 'required' => false, 'attr' => array('class' => 'input-sm form-full')))->add('prenom', 'text', array('translation_domain' => 'siteUserBundle', 'label' => 'fields.prenom', 'required' => false, 'attr' => array('class' => 'input-sm form-full')))->add('adminhelp', 'insCheck', array('translation_domain' => 'siteUserBundle', "required" => false, "label" => "fields.help", 'attr' => array('class' => 'input-sm form-full')))->add('admintheme', 'choice', array('translation_domain' => 'siteUserBundle', "required" => true, "label" => "fields.theme", "choice_list" => new ChoiceList($themesListKeys, $themesList), 'attr' => array('class' => 'input-sm form-full chosen-select chosen-select-width chosen-select-no-results', 'placeholder' => 'form.select')))->add('langue', 'text', array('translation_domain' => 'siteUserBundle', "required" => true, "label" => "fields.lang", 'attr' => array('class' => 'input-sm form-full')));
 }