Loading module/Application/src/Application/Form/Poste/PosteForm.php +18 −2 Changes for module/Application/src/Application/Form/Poste/PosteForm.php: 18 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -22,6 +22,23 @@ class PosteForm extends Form { use EntityManagerAwareTrait; use ServiceLocatorAwareTrait; private $autocomplete; /** * @return mixed */ public function getAutocomplete() { return $this->autocomplete; } /** * @param mixed $autocomplete */ public function setAutocomplete($autocomplete) { $this->autocomplete = $autocomplete; } public function init() { Loading Loading @@ -67,8 +84,7 @@ class PosteForm extends Form { $sas->setAttribute('class', 'individu-finder'); $sas->setLabelOption('disable_html_escape', false); // $sas->setAutocompleteSource($this->getUrl('poste-form/rechercher-batiment')); $sas->setAutocompleteSource('/poste/rechercher-batiment'); $sas->setAutocompleteSource($this->getAutocomplete()); $this->add($sas); // correspondance $this->add([ Loading module/Application/src/Application/Form/Poste/PosteFormFactory.php +2 −1 Changes for module/Application/src/Application/Form/Poste/PosteFormFactory.php: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -32,11 +32,12 @@ class PosteFormFactory { /** @var PosteHydrator $hydrator */ $hydrator = $manager->getServiceLocator()->get('HydratorManager')->get(PosteHydrator::class); $form = new PosteForm(); $form->setAutocomplete($manager->getServiceLocator()->get('view_renderer')->url('poste/rechercher-batiment',[],[], true)); $form->setEntityManager($entityManager); $form->setAgentService($agentService); $form->setRessourceRhService($ressourceService); //$url = $this->getUrl($manager,'poste/rechercher-batiment', [], [], true); $form->init(); $form->setHydrator($hydrator); Loading module/Application/view/application/fiche-metier/associer-agent.phtml Empty file added. Loading
module/Application/src/Application/Form/Poste/PosteForm.php +18 −2 Changes for module/Application/src/Application/Form/Poste/PosteForm.php: 18 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -22,6 +22,23 @@ class PosteForm extends Form { use EntityManagerAwareTrait; use ServiceLocatorAwareTrait; private $autocomplete; /** * @return mixed */ public function getAutocomplete() { return $this->autocomplete; } /** * @param mixed $autocomplete */ public function setAutocomplete($autocomplete) { $this->autocomplete = $autocomplete; } public function init() { Loading Loading @@ -67,8 +84,7 @@ class PosteForm extends Form { $sas->setAttribute('class', 'individu-finder'); $sas->setLabelOption('disable_html_escape', false); // $sas->setAutocompleteSource($this->getUrl('poste-form/rechercher-batiment')); $sas->setAutocompleteSource('/poste/rechercher-batiment'); $sas->setAutocompleteSource($this->getAutocomplete()); $this->add($sas); // correspondance $this->add([ Loading
module/Application/src/Application/Form/Poste/PosteFormFactory.php +2 −1 Changes for module/Application/src/Application/Form/Poste/PosteFormFactory.php: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -32,11 +32,12 @@ class PosteFormFactory { /** @var PosteHydrator $hydrator */ $hydrator = $manager->getServiceLocator()->get('HydratorManager')->get(PosteHydrator::class); $form = new PosteForm(); $form->setAutocomplete($manager->getServiceLocator()->get('view_renderer')->url('poste/rechercher-batiment',[],[], true)); $form->setEntityManager($entityManager); $form->setAgentService($agentService); $form->setRessourceRhService($ressourceService); //$url = $this->getUrl($manager,'poste/rechercher-batiment', [], [], true); $form->init(); $form->setHydrator($hydrator); Loading