Loading module/Application/config/merged/agent.config.php +0 −1 Changes for module/Application/config/merged/agent.config.php: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -449,7 +449,6 @@ return [ 'invokables' => [ 'agent' => AgentViewHelper::class, 'agentAffectation' => AgentAffectationViewHelper::class, 'agentApplication' => AgentApplicationViewHelper::class, 'agentFormation' => AgentFormationViewHelper::class, 'agentStatut' => AgentStatutViewHelper::class, 'agentGrade' => AgentGradeViewHelper::class, Loading module/Application/config/merged/application.config.php +14 −2 Changes for module/Application/config/merged/application.config.php: 14 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ return [ 'action' => [ 'effacer', 'detruire-groupe', 'supprimer-application-element', ], 'privileges' => [ ApplicationPrivileges::APPLICATION_EFFACER, Loading Loading @@ -131,7 +132,7 @@ return [ 'changer-niveau' => [ 'type' => Segment::class, 'options' => [ 'route' => '/changer-niveau/:application-element', 'route' => '/changer-niveau/:application-element[/:clef]', 'defaults' => [ 'controller' => ApplicationController::class, 'action' => 'changer-niveau', Loading Loading @@ -235,7 +236,7 @@ return [ 'ajouter-application-element' => [ 'type' => Segment::class, 'options' => [ 'route' => '/ajouter-application-element/:type/:id', 'route' => '/ajouter-application-element/:type/:id[/:clef]', 'defaults' => [ 'controller' => ApplicationController::class, 'action' => 'ajouter-application-element', Loading @@ -243,6 +244,17 @@ return [ ], 'may_terminate' => true, ], 'supprimer-application-element' => [ 'type' => Segment::class, 'options' => [ 'route' => '/supprimer-application-element/:application-element', 'defaults' => [ 'controller' => ApplicationController::class, 'action' => 'supprimer-application-element', ], ], 'may_terminate' => true, ], 'changer-status' => [ 'type' => Segment::class, 'options' => [ Loading module/Application/config/merged/competence.config.php +2 −2 Changes for module/Application/config/merged/competence.config.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ return [ 'changer-niveau' => [ 'type' => Segment::class, 'options' => [ 'route' => '/changer-niveau/:competence-element', 'route' => '/changer-niveau/:competence-element[/:clef]', 'defaults' => [ 'controller' => CompetenceController::class, 'action' => 'changer-niveau', Loading Loading @@ -249,7 +249,7 @@ return [ 'ajouter-competence-element' => [ 'type' => Segment::class, 'options' => [ 'route' => '/ajouter-competence-element/:type/:id', 'route' => '/ajouter-competence-element/:type/:id[/:clef]', 'defaults' => [ 'controller' => CompetenceController::class, 'action' => 'ajouter-competence-element', Loading module/Application/config/merged/fiche-metier.config.php +12 −0 Changes for module/Application/config/merged/fiche-metier.config.php: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ return [ 'afficher', 'exporter', 'exporter-toutes', 'graphique-applications', 'graphique-competences', ], Loading Loading @@ -234,6 +235,17 @@ return [ ], 'may_terminate' => true, ], 'graphique-applications' => [ 'type' => Segment::class, 'options' => [ 'route' => '/graphique-applications/:fiche-metier[/:agent]', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'graphique-applications', ], ], 'may_terminate' => true, ], 'graphique-competences' => [ 'type' => Segment::class, 'options' => [ Loading module/Application/src/Application/Controller/ApplicationController.php +30 −1 Changes for module/Application/src/Application/Controller/ApplicationController.php: 30 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ use Application\Service\Application\ApplicationServiceAwareTrait; use Application\Service\Application\ApplicationGroupeServiceAwareTrait; use Application\Service\ApplicationElement\ApplicationElementServiceAwareTrait; use Application\Service\FicheMetier\FicheMetierServiceAwareTrait; use Zend\Form\Element\Hidden; use Zend\Http\Request; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; Loading Loading @@ -290,6 +291,7 @@ class ApplicationController extends AbstractActionController { case FicheMetier::class : $hasApplicationElement = $this->getFicheMetierService()->getRequestedFicheMetier($this, 'id'); break; } $clef=$this->params()->fromRoute('clef'); if ($hasApplicationElement !== null) { $element = new ApplicationElement(); Loading @@ -297,6 +299,7 @@ class ApplicationController extends AbstractActionController { $form = $this->getApplicationElementForm(); $form->setAttribute('action', $this->url()->fromRoute('application/ajouter-application-element', ['type' => $type, 'id' => $hasApplicationElement->getId()], [], true)); $form->bind($element); if ($clef === 'masquer') $form->masquerClef(); $request = $this->getRequest(); if ($request->isPost()) { Loading Loading @@ -326,13 +329,39 @@ class ApplicationController extends AbstractActionController { exit(); } public function supprimerApplicationElementAction() { $element = $this->getApplicationElementService()->getRequestedApplicationElement($this); /** @var Request $request */ $request = $this->getRequest(); if ($request->isPost()) { $data = $request->getPost(); if ($data["reponse"] === "oui") $this->getApplicationElementService()->delete($element); exit(); } $vm = new ViewModel(); if ($element !== null) { $vm->setTemplate('application/default/confirmation'); $vm->setVariables([ 'title' => "Suppression de l'application " . $element->getApplication()->getLibelle(), 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", 'action' => $this->url()->fromRoute('application/supprimer-application-element', ["application-element" => $element->getId()], [], true), ]); } return $vm; } /** Niveau de maitrise d'un */ public function changerNiveauAction() { $element = $this->getApplicationElementService()->getRequestedApplicationElement($this); $clef=$this->params()->fromRoute('clef'); $form = $this->getSelectionCompetenceMaitriseForm(); $form->setAttribute('action', $this->url()->fromRoute('application/changer-niveau', ['application-element' => $element->getId()], [], true)); $form->setAttribute('action', $this->url()->fromRoute('application/changer-niveau', ['application-element' => $element->getId(), 'clef' => $clef], [], true)); $form->bind($element); if ($clef === 'masquer') $form->masquerClef(); $request = $this->getRequest(); if ($request->isPost()) { Loading Loading
module/Application/config/merged/agent.config.php +0 −1 Changes for module/Application/config/merged/agent.config.php: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -449,7 +449,6 @@ return [ 'invokables' => [ 'agent' => AgentViewHelper::class, 'agentAffectation' => AgentAffectationViewHelper::class, 'agentApplication' => AgentApplicationViewHelper::class, 'agentFormation' => AgentFormationViewHelper::class, 'agentStatut' => AgentStatutViewHelper::class, 'agentGrade' => AgentGradeViewHelper::class, Loading
module/Application/config/merged/application.config.php +14 −2 Changes for module/Application/config/merged/application.config.php: 14 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ return [ 'action' => [ 'effacer', 'detruire-groupe', 'supprimer-application-element', ], 'privileges' => [ ApplicationPrivileges::APPLICATION_EFFACER, Loading Loading @@ -131,7 +132,7 @@ return [ 'changer-niveau' => [ 'type' => Segment::class, 'options' => [ 'route' => '/changer-niveau/:application-element', 'route' => '/changer-niveau/:application-element[/:clef]', 'defaults' => [ 'controller' => ApplicationController::class, 'action' => 'changer-niveau', Loading Loading @@ -235,7 +236,7 @@ return [ 'ajouter-application-element' => [ 'type' => Segment::class, 'options' => [ 'route' => '/ajouter-application-element/:type/:id', 'route' => '/ajouter-application-element/:type/:id[/:clef]', 'defaults' => [ 'controller' => ApplicationController::class, 'action' => 'ajouter-application-element', Loading @@ -243,6 +244,17 @@ return [ ], 'may_terminate' => true, ], 'supprimer-application-element' => [ 'type' => Segment::class, 'options' => [ 'route' => '/supprimer-application-element/:application-element', 'defaults' => [ 'controller' => ApplicationController::class, 'action' => 'supprimer-application-element', ], ], 'may_terminate' => true, ], 'changer-status' => [ 'type' => Segment::class, 'options' => [ Loading
module/Application/config/merged/competence.config.php +2 −2 Changes for module/Application/config/merged/competence.config.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ return [ 'changer-niveau' => [ 'type' => Segment::class, 'options' => [ 'route' => '/changer-niveau/:competence-element', 'route' => '/changer-niveau/:competence-element[/:clef]', 'defaults' => [ 'controller' => CompetenceController::class, 'action' => 'changer-niveau', Loading Loading @@ -249,7 +249,7 @@ return [ 'ajouter-competence-element' => [ 'type' => Segment::class, 'options' => [ 'route' => '/ajouter-competence-element/:type/:id', 'route' => '/ajouter-competence-element/:type/:id[/:clef]', 'defaults' => [ 'controller' => CompetenceController::class, 'action' => 'ajouter-competence-element', Loading
module/Application/config/merged/fiche-metier.config.php +12 −0 Changes for module/Application/config/merged/fiche-metier.config.php: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ return [ 'afficher', 'exporter', 'exporter-toutes', 'graphique-applications', 'graphique-competences', ], Loading Loading @@ -234,6 +235,17 @@ return [ ], 'may_terminate' => true, ], 'graphique-applications' => [ 'type' => Segment::class, 'options' => [ 'route' => '/graphique-applications/:fiche-metier[/:agent]', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'graphique-applications', ], ], 'may_terminate' => true, ], 'graphique-competences' => [ 'type' => Segment::class, 'options' => [ Loading
module/Application/src/Application/Controller/ApplicationController.php +30 −1 Changes for module/Application/src/Application/Controller/ApplicationController.php: 30 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ use Application\Service\Application\ApplicationServiceAwareTrait; use Application\Service\Application\ApplicationGroupeServiceAwareTrait; use Application\Service\ApplicationElement\ApplicationElementServiceAwareTrait; use Application\Service\FicheMetier\FicheMetierServiceAwareTrait; use Zend\Form\Element\Hidden; use Zend\Http\Request; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; Loading Loading @@ -290,6 +291,7 @@ class ApplicationController extends AbstractActionController { case FicheMetier::class : $hasApplicationElement = $this->getFicheMetierService()->getRequestedFicheMetier($this, 'id'); break; } $clef=$this->params()->fromRoute('clef'); if ($hasApplicationElement !== null) { $element = new ApplicationElement(); Loading @@ -297,6 +299,7 @@ class ApplicationController extends AbstractActionController { $form = $this->getApplicationElementForm(); $form->setAttribute('action', $this->url()->fromRoute('application/ajouter-application-element', ['type' => $type, 'id' => $hasApplicationElement->getId()], [], true)); $form->bind($element); if ($clef === 'masquer') $form->masquerClef(); $request = $this->getRequest(); if ($request->isPost()) { Loading Loading @@ -326,13 +329,39 @@ class ApplicationController extends AbstractActionController { exit(); } public function supprimerApplicationElementAction() { $element = $this->getApplicationElementService()->getRequestedApplicationElement($this); /** @var Request $request */ $request = $this->getRequest(); if ($request->isPost()) { $data = $request->getPost(); if ($data["reponse"] === "oui") $this->getApplicationElementService()->delete($element); exit(); } $vm = new ViewModel(); if ($element !== null) { $vm->setTemplate('application/default/confirmation'); $vm->setVariables([ 'title' => "Suppression de l'application " . $element->getApplication()->getLibelle(), 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", 'action' => $this->url()->fromRoute('application/supprimer-application-element', ["application-element" => $element->getId()], [], true), ]); } return $vm; } /** Niveau de maitrise d'un */ public function changerNiveauAction() { $element = $this->getApplicationElementService()->getRequestedApplicationElement($this); $clef=$this->params()->fromRoute('clef'); $form = $this->getSelectionCompetenceMaitriseForm(); $form->setAttribute('action', $this->url()->fromRoute('application/changer-niveau', ['application-element' => $element->getId()], [], true)); $form->setAttribute('action', $this->url()->fromRoute('application/changer-niveau', ['application-element' => $element->getId(), 'clef' => $clef], [], true)); $form->bind($element); if ($clef === 'masquer') $form->masquerClef(); $request = $this->getRequest(); if ($request->isPost()) { Loading