src/Bse/CandidatureBundle/Form/CandidatureType.php
/**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
@param FormBuilderInterface $builder
@param array $options
@param FormBuilderInterface $builder @param array $options
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('cin')
            ->add('cne')
            ->add('nom')
            ->add('prenom')
            ->add('email')            
            ->add('dateNaissance', 'birthday',
                   array( 'empty_value' => array('year' => 'Année', 'month' => 'Mois', 'day' => 'Jour'),
                          'years'=>range(1950, date('Y') - 14)))
            ->add('pays')  
            ->add('ville')
            ->add('adresse')  
            ->add('sexe')  
            ->add('etablissementOrigine')
            ->add('typeDiplome')
            ->add('intituleDiplome')
            ->add('diplomeEtranger')
            ->add('mention')
            ->add('anneeObtentionLicence')
            ->add('anneeObtentionBac')
            ->add('anneeInscription')
            ->add('systeme')
            ->add('noteS1')
            ->add('noteS2')
            ->add('noteS3')
            ->add('noteS4')
            ->add('noteS5')
            ->add('noteS6')
            ->add('filiere') 
            ->add('motDePasse')           
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'cin' ) -> add ( 'cne' ) -> add ( 'nom' ) -> add ( 'prenom' ) -> add ( 'email' ) -> add ( 'dateNaissance' , 'birthday' , array ( 'empty_value' => array ( 'year' => 'Année', month'  >  Mois', day'  >  Jour') , 'years' => range ( 1950 , date ( 'Y' ) - 14 ) ) ) -> add ( 'pays' ) -> add ( 'ville' ) -> add ( 'adresse' ) -> add ( 'sexe' ) -> add ( 'etablissementOrigine' ) -> add ( 'typeDiplome' ) -> add ( 'intituleDiplome' ) -> add ( 'diplomeEtranger' ) -> add ( 'mention' ) -> add ( 'anneeObtentionLicence' ) -> add ( 'anneeObtentionBac' ) -> add ( 'anneeInscription' ) -> add ( 'systeme' ) -> add ( 'noteS1' ) -> add ( 'noteS2' ) -> add ( 'noteS3' ) -> add ( 'noteS4' ) -> add ( 'noteS5' ) -> add ( 'noteS6' ) -> add ( 'filiere' ) -> add ( 'motDePasse' ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options