Loading module/Oscar/src/Oscar/Form/OrganizationIdentificationForm.php +23 −3 Original line number Diff line number Diff line Loading @@ -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(){ Loading Loading @@ -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' ]); //////////////////////////////////////////////////////////////////////// Loading Loading @@ -154,6 +169,7 @@ class OrganizationIdentificationForm extends \Zend\Form\Form implements InputFil 'type'=>'DateTime' ]); // DateEnd $this->add([ 'name' => 'dateEnd', Loading Loading @@ -279,6 +295,10 @@ class OrganizationIdentificationForm extends \Zend\Form\Form implements InputFil 'country' => [ 'required' => false ], 'type' => [ 'required' => false ] ]; } Loading Loading
module/Oscar/src/Oscar/Form/OrganizationIdentificationForm.php +23 −3 Original line number Diff line number Diff line Loading @@ -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(){ Loading Loading @@ -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' ]); //////////////////////////////////////////////////////////////////////// Loading Loading @@ -154,6 +169,7 @@ class OrganizationIdentificationForm extends \Zend\Form\Form implements InputFil 'type'=>'DateTime' ]); // DateEnd $this->add([ 'name' => 'dateEnd', Loading Loading @@ -279,6 +295,10 @@ class OrganizationIdentificationForm extends \Zend\Form\Form implements InputFil 'country' => [ 'required' => false ], 'type' => [ 'required' => false ] ]; } Loading