public function init()
    {
        $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator())
             ->setName('base');

        $this->add(
            array(
            'name' => 'willingnessToTravel',
            'type' => '\Core\Form\Element\Select',
            'options' => array(
                'value_options' => array(
                    '' => '', // needed for jquery select2 to render the placeholder
                    "yes"=>/*@translate*/ "Yes",
                    "conditioned" => /*@translate*/ "conditioned",
                    "no"=>/*@translate*/ "No"),
                'label' => /*@translate*/ 'Willingness to travel',
                'description' => /*@translate*/ 'Enter your willingness to travel.',
                'disable_capable' => array(
                    'description' => /*@translate*/ 'Ask the applicant about the willingness to travel',
                ),
            ),
            'attributes' => array(
                'data-placeholder' => /*@translate*/ 'please select',
                'data-allowclear' => 'false',
                'data-searchbox' => -1,
                'data-width' => '100%'
            ),
            )
        );

        $this->add(
            [
                'name'       => 'earliestStartingDate',
                'type'       => 'Core/Datepicker',
                'options'    => [
                    'label'           => /*@translate*/ 'Earliest starting date',
                    'description'     => /*@translate*/ 'Enter the earliest starting date.',
                    'disable_capable' => [
                        'description' => /*@translate*/ 'Ask the applicant about the earliest starting date.',
                    ],
                ],
                'attributes' => [
                    'data-date-format' => 'yyyy-mm-dd',
                    'data-language' => 'de',
                    'class' => 'datepicker'
                ]
            ]
        );

        $this->add(
            array(
                'name'    => 'expectedSalary',
                'options' => array(
                    'label'           => /*@translate*/ 'Expected salary',
                    'description'     => /*@translate*/ 'Your salary requirements should be the annual amount before taxes. Do not forget to provide the currency sign.',
                    'disable_capable' => array(
                        'description' => /*@translate*/ 'Ask users about their expected salary.',
                    ),
                ),
            )
        );

        $this->add(
            array(
                'name'       => 'drivingLicense',
                'type'       => '\Core\Form\Element\Select',
                'options'    => array(
                    'value_options'   => array(
                        ''  => '', // needed for jquery select2 to render the placeholder
                        "1" =>/*@translate*/ "Yes",
                        "0" =>/*@translate*/ "No"
                    ),
                    'label'           => /*@translate*/ 'driving license',
                    'description'     => /*@translate*/ 'Do you have a driving license?',
                    'disable_capable' => array(
                        'description' => /*@translate*/ 'Ask the applicant, if he has a driving license.',
                    ),
                ),
                'attributes' => [
                    'data-allowclear'  => 'false',
                    'data-searchbox'   => -1,
                    'data-placeholder' => /*@translate*/ 'please select',
                    'data-width' => '100%'
                ]
            )
        );
    }
public function init()
    {
        $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator())
             ->setName('base');

        $this->add(
            array(
            'name' => 'willingnessToTravel',
            'type' => '\Core\Form\Element\Select',
            'options' => array(
                'value_options' => array(
                    '' => '', // needed for jquery select2 to render the placeholder
                    "yes"=>/*@translate*/ "Yes",
                    "conditioned" => /*@translate*/ "conditioned",
                    "no"=>/*@translate*/ "No"),
                'label' => /*@translate*/ 'Willingness to travel',
                'description' => /*@translate*/ 'Enter your willingness to travel.',
                'disable_capable' => array(
                    'description' => /*@translate*/ 'Ask the applicant about the willingness to travel',
                ),
            ),
            'attributes' => array(
                'data-placeholder' => /*@translate*/ 'please select',
                'data-allowclear' => 'false',
                'data-searchbox' => -1,
                'data-width' => '100%'
            ),
            )
        );

        $this->add(
            [
                'name'       => 'earliestStartingDate',
                'type'       => 'Core/Datepicker',
                'options'    => [
                    'label'           => /*@translate*/ 'Earliest starting date',
                    'description'     => /*@translate*/ 'Enter the earliest starting date.',
                    'disable_capable' => [
                        'description' => /*@translate*/ 'Ask the applicant about the earliest starting date.',
                    ],
                ],
                'attributes' => [
                    'data-date-format' => 'yyyy-mm-dd',
                    'data-language' => 'de',
                    'class' => 'datepicker'
                ]
            ]
        );

        $this->add(
            array(
                'name'    => 'expectedSalary',
                'options' => array(
                    'label'           => /*@translate*/ 'Expected salary',
                    'description'     => /*@translate*/ 'Your salary requirements should be the annual amount before taxes. Do not forget to provide the currency sign.',
                    'disable_capable' => array(
                        'description' => /*@translate*/ 'Ask users about their expected salary.',
                    ),
                ),
            )
        );

        $this->add(
            array(
                'name'       => 'drivingLicense',
                'type'       => '\Core\Form\Element\Select',
                'options'    => array(
                    'value_options'   => array(
                        ''  => '', // needed for jquery select2 to render the placeholder
                        "1" =>/*@translate*/ "Yes",
                        "0" =>/*@translate*/ "No"
                    ),
                    'label'           => /*@translate*/ 'driving license',
                    'description'     => /*@translate*/ 'Do you have a driving license?',
                    'disable_capable' => array(
                        'description' => /*@translate*/ 'Ask the applicant, if he has a driving license.',
                    ),
                ),
                'attributes' => [
                    'data-allowclear'  => 'false',
                    'data-searchbox'   => -1,
                    'data-placeholder' => /*@translate*/ 'please select',
                    'data-width' => '100%'
                ]
            )
        );
    }
public function init ( ) { $ this -> setHydrator ( new \ Core \ Entity \ Hydrator \ EntityHydrator ( ) ) -> setName ( 'base' ) ; $ this -> add ( array ( 'name' => 'willingnessToTravel' , 'type' => '\Core\Form\Element\Select' , 'options' => array ( 'value_options' => array ( '' => '' , // needed for jquery select2 to render the placeholder "yes" => /*@translate*/ "Yes" , "conditioned" => /*@translate*/ "conditioned" , "no" => /*@translate*/ "No" ) , 'label' => /*@translate*/ 'Willingness to travel' , 'description' => /*@translate*/ 'Enter your willingness to travel.' , 'disable_capable' => array ( 'description' => /*@translate*/ 'Ask the applicant about the willingness to travel' , ) , ) , 'attributes' => array ( 'data-placeholder' => /*@translate*/ 'please select' , 'data-allowclear' => 'false' , 'data-searchbox' => - 1 , 'data-width' => '100%' ) , ) ) ; $ this -> add ( [ 'name' => 'earliestStartingDate' , 'type' => 'Core/Datepicker' , 'options' => [ 'label' => /*@translate*/ 'Earliest starting date' , 'description' => /*@translate*/ 'Enter the earliest starting date.' , 'disable_capable' => [ 'description' => /*@translate*/ 'Ask the applicant about the earliest starting date.' , ] , ] , 'attributes' => [ 'data-date-format' => 'yyyy-mm-dd' , 'data-language' => 'de' , 'class' => 'datepicker' ] ] ) ; $ this -> add ( array ( 'name' => 'expectedSalary' , 'options' => array ( 'label' => /*@translate*/ 'Expected salary' , 'description' => /*@translate*/ 'Your salary requirements should be the annual amount before taxes. Do not forget to provide the currency sign.' , 'disable_capable' => array ( 'description' => /*@translate*/ 'Ask users about their expected salary.' , ) , ) , ) ) ; $ this -> add ( array ( 'name' => 'drivingLicense' , 'type' => '\Core\Form\Element\Select' , 'options' => array ( 'value_options' => array ( '' => '' , // needed for jquery select2 to render the placeholder "1" => /*@translate*/ "Yes" , "0" => /*@translate*/ "No" ) , 'label' => /*@translate*/ 'driving license' , 'description' => /*@translate*/ 'Do you have a driving license?' , 'disable_capable' => array ( 'description' => /*@translate*/ 'Ask the applicant, if he has a driving license.' , ) , ) , 'attributes' => [ 'data-allowclear' => 'false' , 'data-searchbox' => - 1 , 'data-placeholder' => /*@translate*/ 'please select' , 'data-width' => '100%' ] ) ) ; }
initialize facts fieldset
initialize facts fieldset