protected function buildUserForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildUserForm($builder, $options);
     $builder->add('current_password', 'password', array('label' => 'form.current_password', 'translation_domain' => 'FOSUserBundle', 'attr' => array('class' => 'form-control', 'id' => 'username', 'placeholder' => 'ActualPassword'), 'mapped' => false));
     $builder->add('description', 'textarea', array('label' => 'Description :', 'attr' => array('class' => 'form-control', 'id' => 'username', 'placeholder' => 'Description')));
     $builder->add('file', 'file');
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $subscriber = new AddMembreFieldSubscriber();
     $builder->addEventSubscriber($subscriber);
     $builder->add('enabled', 'checkbox', array('label' => 'Adresse email validé ?', 'required' => false));
     $builder->add('roles', 'choice', array('choices' => $this->refactorRoles($this->roles), 'required' => false, 'label' => 'Roles', 'multiple' => true));
     parent::buildForm($builder, $options);
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     // add your custom field
     $builder->add('name');
     $builder->add('file');
     $builder->add('descripcion');
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     // add your custom field
     $builder->add('name', null, array('label' => 'form.name', 'translation_domain' => 'FOSUserBundle', 'required' => false));
     $builder->add('surname', null, array('label' => 'form.surname', 'translation_domain' => 'FOSUserBundle', 'required' => false));
     $builder->add('jobTitle', null, array('label' => 'form.jobTitle', 'translation_domain' => 'FOSUserBundle', 'required' => false));
     $builder->add('companyName', null, array('label' => 'form.companyName', 'translation_domain' => 'FOSUserBundle', 'required' => false));
     $builder->add('addressLineFirst', null, array('label' => 'form.addressLineFirst', 'translation_domain' => 'FOSUserBundle', 'required' => false));
     $builder->add('addressLineSecond', null, array('label' => 'form.addressLineSecond', 'translation_domain' => 'FOSUserBundle', 'required' => false));
     $builder->add('zipcode', null, array('label' => 'form.zipcode', 'translation_domain' => 'FOSUserBundle', 'required' => false));
     $builder->add('phone', null, array('label' => 'form.phone', 'translation_domain' => 'FOSUserBundle', 'required' => false));
     $builder->add('country', 'country', array('label' => 'form.country', 'translation_domain' => 'FOSUserBundle', 'required' => false));
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     // add your custom field
     $builder->remove('email');
     $builder->remove('username');
     $builder->remove('current_password');
     $builder->add('name');
     $builder->add('location');
     $builder->add('street');
     $builder->add('housenumber');
     $builder->add('postalcode');
     $builder->add('city');
     $builder->add('facebook');
     $builder->add('twitter');
     $builder->add('website');
     $builder->add('organiser');
 }
Beispiel #6
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('sex', Type\ChoiceType::class, array('choices' => array('Un Homme' => '0', 'Une Femme' => '1'), 'expanded' => true, 'multiple' => false));
 }
 protected function buildUserForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildUserForm($builder, $options);
     $builder->add('profilePictureFile')->add('first_name', null, array('label' => 'firstName', 'translation_domain' => 'FOSUserBundle'))->add('last_name', null, array('label' => 'lastName', 'translation_domain' => 'FOSUserBundle'))->add('ddn', null, array('label' => 'ddn', 'translation_domain' => 'FOSUserBundle'))->add('current_password', null, array('label' => 'Mot de passe', 'translation_domain' => 'FOSUserBundle'));
     $builder->remove('username');
 }
Beispiel #8
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('firstname')->add('lastname');
     parent::buildForm($builder, $options);
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     // On fait appel à la méthode buildForm du parent, qui va ajouter tous les champs à $builder
     parent::buildForm($builder, $options);
 }
 /**
  * @DI\InjectParams({
  *     "class" = @DI\Inject("%fos_user.model.user.class%")
  * })
  */
 public function __construct($class)
 {
     parent::__construct($class);
     // TODO: Change the autogenerated stub
 }
Beispiel #11
0
 /**
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('file', 'file')->add('nom');
 }
Beispiel #12
0
 /**
  * Builds the embedded form representing the user.
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 protected function buildUserForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildUserForm($builder, $options);
     $builder->add('firstname')->add('lastname')->add('country', 'country_custom')->add('language', 'language_custom')->add('professional', 'professional', array('required' => false))->add('companyName')->add('newsletter');
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('firstName', 'text', array('attr' => array('minLength' => 2, 'maxLength' => 100, 'data-msg-required' => 'Please enter a first name')))->add('lastName', 'text', array('attr' => array('minLength' => 2, 'maxLength' => 100, 'data-msg-required' => 'Please enter a last name')));
     parent::buildForm($builder, $options);
     $builder->remove('username')->remove('email')->add('email', 'email', array('label' => 'form.email', 'translation_domain' => 'FOSUserBundle', 'attr' => array('class' => 'email', 'minLength' => 5, 'maxLength' => 255, 'placeholder' => '*****@*****.**', 'data-msg-required' => 'Please enter your email address')))->add('clearProfilePicture', 'checkbox', array('label' => 'Clear Picture', 'required' => false))->add('profilePictureFile', 'file', array('label' => 'Upload a custom avatar', 'required' => false));
 }
 protected function buildUserForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildUserForm($builder, $options);
     $builder->add('nom', 'text', array('required' => false, 'label' => 'Nom'))->add('prenom', 'text', array('required' => false, 'label' => 'Prénom'));
 }
Beispiel #15
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('failureNotifications', null, array('required' => false));
 }
Beispiel #16
0
 protected function buildUserForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildUserForm($builder, $options);
     $builder->add('firstName', 'text', ['label' => 'First Name', 'property_path' => 'profile.firstName'])->add('lastName', 'text', ['label' => 'Last Name', 'required' => false, 'property_path' => 'profile.lastName']);
 }
 public function __construct($class)
 {
     parent::__construct($class);
     $this->class = $class;
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('birthday', 'date', array('widget' => 'single_text', 'format' => 'dd/MM/yyyy', 'label' => 'birthday', 'translation_domain' => 'FOSUserBundle'));
 }
 public function setDefaultOptions(OptionsResolverInterface $resolver)
 {
     parent::setDefaultOptions($resolver);
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     // add your custom field
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('failureNotifications', null, array('required' => false, 'label' => 'Notify me of package update failures'));
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('player', new PlayerType());
 }
Beispiel #24
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('roles', 'choice', array('label' => 'Rol', 'required' => true, 'choices' => array('ROLE_ADMIN' => 'Administrador', 'ROLE_USER' => 'Usuario'), 'multiple' => true));
     $builder->add('plainPassword', 'repeated', array('type' => 'password', 'invalid_message' => 'The password fields must match.', 'options' => array('attr' => array('class' => 'password-field')), 'required' => true, 'first_options' => array('label' => 'Password'), 'second_options' => array('label' => 'Repeat Password')));
 }
Beispiel #25
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     // Lista de campos customizaveis
     $builder->add('name', 'text', array('label' => 'Nome', 'required' => true))->add('linkedin', 'url', array('label' => 'LinkedIn', 'required' => false))->add('twitter', 'text', array('label' => 'Twitter', 'attr' => array('placeholder' => '@Usuario'), 'required' => false))->add('github', 'text', array('label' => 'Conta GitHub', 'required' => false));
 }
Beispiel #26
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildUserForm($builder, $options);
     // Charge les champs d'origine
     $builder->add('email', 'email', array('label' => 'form.email', 'translation_domain' => 'FOSUserBundle'))->add('firstname', null, array('required' => false))->add('name', null, array('required' => false))->add('phone', 'text', array('required' => false))->add('showphone', 'checkbox', array('required' => false))->add('finalword', null, array('attr' => array('class' => 'form-control input-sm', 'placeholder' => 'Laisser un mot à ceux qui visite votre profile...')))->add('age', 'birthday', array('required' => false, 'label' => 'Date de naissance:', 'years' => range(2000, 1920), 'attr' => array('class' => 'form-group'), 'empty_value' => array('year' => 'Année', 'month' => 'Mois', 'day' => 'Jour')))->remove('city')->remove('username', null, array('label' => 'form.username', 'translation_domain' => 'FOSUserBundle'));
 }
 protected function buildUserForm(FormBuilder $builder, array $options)
 {
     parent::buildUserForm($builder, $options);
 }