Commit 7d4d0286 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

FIX : Les types d'organisation s'affichent/s'enregistre correctement

parent 9871a389
Loading
Loading
Loading
Loading
+23 −3
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ class OrganizationIdentificationForm extends \Zend\Form\Form implements InputFil
        parent::__construct('organization');
        $this->connectors = $organizationService->getConnectorsList();
        $this->countries = $organizationService->getCountriesIso366Labels();
        $this->types = $types;
    }

    public function init(){
@@ -111,18 +112,32 @@ class OrganizationIdentificationForm extends \Zend\Form\Form implements InputFil
            'placeholder'   => 'Nom complet',
        ]);
        $this->add($fullName);

        /*
        *  $this->add([
           'name'   => 'country',
           'options' => [
               'label' => 'Pays (ISO)',
               'value_options' => $this->countries
           ],
           'attributes' => [
               'class' => 'form-control',
               'placeholder'   => 'Pays'
           ],
           'type'=>'Select'
       ]);
        */
        // Source
        $this->add([
            'name'   => 'type',
            'options' => [
                'label' => "Type"
                'label' => "Type",
                'value_options' => $this->types
            ],
            'attributes' => [
                'class' => 'form-control',
                'list' => 'types'
            ],
            'type'=>'Text'
            'type'=>'Select'
        ]);

        ////////////////////////////////////////////////////////////////////////
@@ -154,6 +169,7 @@ class OrganizationIdentificationForm extends \Zend\Form\Form implements InputFil
            'type'=>'DateTime'
        ]);


        // DateEnd
        $this->add([
            'name'   => 'dateEnd',
@@ -279,6 +295,10 @@ class OrganizationIdentificationForm extends \Zend\Form\Form implements InputFil

            'country' => [
                'required' => false
            ],

            'type' => [
                'required' => false
            ]
        ];
    }