Loading module/Application/src/Application/Controller/FichePosteController.php +20 −2 Changes for module/Application/src/Application/Controller/FichePosteController.php: 20 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -778,8 +778,26 @@ class FichePosteController extends AbstractActionController { public function supprimerExpertiseAction() { $expertise = $this->getExpertiseService()->getRequestedExpertise($this); $this->getExpertiseService()->delete($expertise); return $this->redirect()->toRoute('fiche-poste/editer', ['fiche-poste' => $expertise->getFicheposte()->getId()], [], true); /** @var Request $request */ $request = $this->getRequest(); if ($request->isPost()) { $data = $request->getPost(); if ($data["reponse"] === "oui") $this->getExpertiseService()->delete($expertise); //return $this->redirect()->toRoute('role', [], [], true); exit(); } $vm = new ViewModel(); if ($expertise !== null) { $vm->setTemplate('unicaen-utilisateur/default/confirmation'); $vm->setVariables([ 'title' => "Suppression de l'expertise " . $expertise->getLibelle(), 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", 'action' => $this->url()->fromRoute('fiche-poste/supprimer-expertise', ["expertise" => $expertise->getId()], [], true), ]); } return $vm; } /** SPECIFICITE ***************************************************************************************************/ Loading module/Application/src/Application/Service/Expertise/ExpertiseService.php +1 −1 Changes for module/Application/src/Application/Service/Expertise/ExpertiseService.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -78,7 +78,7 @@ class ExpertiseService { ->addSelect('createur')->join('expertise.histoCreateur', 'createur') ->addSelect('modificateur')->join('expertise.histoModificateur', 'modificateur') ->addSelect('destructeur')->leftJoin('expertise.histoDestructeur', 'destructeur') ->addSelect('ficheposte')->leftJoin('expertise.$ficheposte', 'ficheposte') ->addSelect('ficheposte')->leftJoin('expertise.ficheposte', 'ficheposte') ; return $qb; } Loading module/Application/src/Application/View/Helper/partial/agent.phtml +2 −1 Changes for module/Application/src/Application/View/Helper/partial/agent.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -100,6 +100,7 @@ if (isset($options["retour"])) $query["retour"] = $options["retour"]; <?php /** @var AgentMissionSpecifique $mission */ foreach ($agent->getMissionsSpecifiques() as $mission) : $structure = $mission->getStructure(); ?> <tr <?php if (!$mission->estEnCours()) : ?> Loading @@ -107,7 +108,7 @@ if (isset($options["retour"])) $query["retour"] = $options["retour"]; <?php endif; ?> > <td> <?php echo $mission->getMission()->getLibelle(); ?> </td> <td> <?php echo $mission->getStructure()->getLibelleLong(); ?> </td> <td> <?php echo ($structure)?$structure->getLibelleLong():"Aucune structure"; ?> </td> <td> <?php echo $mission->getDateDebut()->format('d/m/Y'); ?> </td> <td> <?php echo ($mission->getDateFin())?$mission->getDateFin()->format('d/m/Y'):"---"; ?> </td> <td> Loading module/Application/view/application/fiche-poste/partial/expertise.phtml +1 Changes for module/Application/view/application/fiche-poste/partial/expertise.phtml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ $date = new DateTime(); <a <?php /** @see \Application\Controller\FichePosteController::supprimerExpertiseAction() */?> href="<?php echo $this->url('fiche-poste/supprimer-expertise',['expertise' => $expertise->getId()], [], true); ?>" title="Supprimer l'expertise" class="ajax-modal" data-event="modification" > <span class="icon detruire"></span></a> <?php endif; ?> Loading module/Application/view/application/mission-specifique-affectation/afficher.phtml +7 −1 Changes for module/Application/view/application/mission-specifique-affectation/afficher.phtml: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -19,7 +19,13 @@ use Application\Entity\Db\AgentMissionSpecifique; <dd> <?php echo $affectation->getMission()->getLibelle(); ?> </dd> <dt> Structure </dt> <dd> <?php echo $affectation->getStructure()->getLibelleLong(); ?> </dd> <dd> <?php if ($affectation->getStructure()) : ?> <?php echo $affectation->getStructure()->getLibelleLong(); ?> <?php else : ?> Aucune Structure <?php endif; ?> </dd> <dt> Période </dt> <dd> Loading Loading
module/Application/src/Application/Controller/FichePosteController.php +20 −2 Changes for module/Application/src/Application/Controller/FichePosteController.php: 20 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -778,8 +778,26 @@ class FichePosteController extends AbstractActionController { public function supprimerExpertiseAction() { $expertise = $this->getExpertiseService()->getRequestedExpertise($this); $this->getExpertiseService()->delete($expertise); return $this->redirect()->toRoute('fiche-poste/editer', ['fiche-poste' => $expertise->getFicheposte()->getId()], [], true); /** @var Request $request */ $request = $this->getRequest(); if ($request->isPost()) { $data = $request->getPost(); if ($data["reponse"] === "oui") $this->getExpertiseService()->delete($expertise); //return $this->redirect()->toRoute('role', [], [], true); exit(); } $vm = new ViewModel(); if ($expertise !== null) { $vm->setTemplate('unicaen-utilisateur/default/confirmation'); $vm->setVariables([ 'title' => "Suppression de l'expertise " . $expertise->getLibelle(), 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", 'action' => $this->url()->fromRoute('fiche-poste/supprimer-expertise', ["expertise" => $expertise->getId()], [], true), ]); } return $vm; } /** SPECIFICITE ***************************************************************************************************/ Loading
module/Application/src/Application/Service/Expertise/ExpertiseService.php +1 −1 Changes for module/Application/src/Application/Service/Expertise/ExpertiseService.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -78,7 +78,7 @@ class ExpertiseService { ->addSelect('createur')->join('expertise.histoCreateur', 'createur') ->addSelect('modificateur')->join('expertise.histoModificateur', 'modificateur') ->addSelect('destructeur')->leftJoin('expertise.histoDestructeur', 'destructeur') ->addSelect('ficheposte')->leftJoin('expertise.$ficheposte', 'ficheposte') ->addSelect('ficheposte')->leftJoin('expertise.ficheposte', 'ficheposte') ; return $qb; } Loading
module/Application/src/Application/View/Helper/partial/agent.phtml +2 −1 Changes for module/Application/src/Application/View/Helper/partial/agent.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -100,6 +100,7 @@ if (isset($options["retour"])) $query["retour"] = $options["retour"]; <?php /** @var AgentMissionSpecifique $mission */ foreach ($agent->getMissionsSpecifiques() as $mission) : $structure = $mission->getStructure(); ?> <tr <?php if (!$mission->estEnCours()) : ?> Loading @@ -107,7 +108,7 @@ if (isset($options["retour"])) $query["retour"] = $options["retour"]; <?php endif; ?> > <td> <?php echo $mission->getMission()->getLibelle(); ?> </td> <td> <?php echo $mission->getStructure()->getLibelleLong(); ?> </td> <td> <?php echo ($structure)?$structure->getLibelleLong():"Aucune structure"; ?> </td> <td> <?php echo $mission->getDateDebut()->format('d/m/Y'); ?> </td> <td> <?php echo ($mission->getDateFin())?$mission->getDateFin()->format('d/m/Y'):"---"; ?> </td> <td> Loading
module/Application/view/application/fiche-poste/partial/expertise.phtml +1 Changes for module/Application/view/application/fiche-poste/partial/expertise.phtml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ $date = new DateTime(); <a <?php /** @see \Application\Controller\FichePosteController::supprimerExpertiseAction() */?> href="<?php echo $this->url('fiche-poste/supprimer-expertise',['expertise' => $expertise->getId()], [], true); ?>" title="Supprimer l'expertise" class="ajax-modal" data-event="modification" > <span class="icon detruire"></span></a> <?php endif; ?> Loading
module/Application/view/application/mission-specifique-affectation/afficher.phtml +7 −1 Changes for module/Application/view/application/mission-specifique-affectation/afficher.phtml: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -19,7 +19,13 @@ use Application\Entity\Db\AgentMissionSpecifique; <dd> <?php echo $affectation->getMission()->getLibelle(); ?> </dd> <dt> Structure </dt> <dd> <?php echo $affectation->getStructure()->getLibelleLong(); ?> </dd> <dd> <?php if ($affectation->getStructure()) : ?> <?php echo $affectation->getStructure()->getLibelleLong(); ?> <?php else : ?> Aucune Structure <?php endif; ?> </dd> <dt> Période </dt> <dd> Loading