Loading module/Application/src/Application/Controller/AgentController.php +4 Changes for module/Application/src/Application/Controller/AgentController.php: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -183,12 +183,16 @@ class AgentController extends AbstractActionController $agentAffectations = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent, false); $agentGrades = $this->getAgentGradeService()->getAgentGradesByAgent($agent, false); $param = $this->getParametreService()->getParametreByCode('GLOBAL', 'CODE_UNIV'); $codeEtabPrincipal = ($param)?$param->getValeur():null; return new ViewModel([ 'title' => 'Listing de tous les statuts et grades de ' . $agent->getDenomination(), 'agent' => $agent, 'affectations' => $agentAffectations, 'statuts' => $agentStatuts, 'grades' => $agentGrades, 'codeEtabPrincipal' => $codeEtabPrincipal, ]); } Loading module/Application/view/application/agent/afficher-statuts-grades.phtml +2 −1 Changes for module/Application/view/application/agent/afficher-statuts-grades.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ use Application\Entity\Db\AgentStatut; * @var AgentAffectation[] $affectations * @var AgentStatut[] $statuts * @var AgentGrade[] $grades * @var string $codeEtabPrincipal */ $this->headTitle($title) Loading @@ -28,7 +29,7 @@ $this->headTitle($title) <div class="col-md-3"> <h2> Statuts <span class="icon information" title="Attention ici ne sont affichés que les statuts associées à la structure principale"></span></h2> <?php foreach ($statuts as $statut) : ?> <?php if ($statut->getStructure()->getCode() === 'UNIV') : ?> <?php if ($statut->getStructure()->getCode() === $codeEtabPrincipal) : ?> <?php echo $this->agentStatut($statut, ['structure' => true, 'periode' => true, 'temoin' => true]); ?> <?php endif; ?> <?php endforeach; ?> Loading Loading
module/Application/src/Application/Controller/AgentController.php +4 Changes for module/Application/src/Application/Controller/AgentController.php: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -183,12 +183,16 @@ class AgentController extends AbstractActionController $agentAffectations = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent, false); $agentGrades = $this->getAgentGradeService()->getAgentGradesByAgent($agent, false); $param = $this->getParametreService()->getParametreByCode('GLOBAL', 'CODE_UNIV'); $codeEtabPrincipal = ($param)?$param->getValeur():null; return new ViewModel([ 'title' => 'Listing de tous les statuts et grades de ' . $agent->getDenomination(), 'agent' => $agent, 'affectations' => $agentAffectations, 'statuts' => $agentStatuts, 'grades' => $agentGrades, 'codeEtabPrincipal' => $codeEtabPrincipal, ]); } Loading
module/Application/view/application/agent/afficher-statuts-grades.phtml +2 −1 Changes for module/Application/view/application/agent/afficher-statuts-grades.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ use Application\Entity\Db\AgentStatut; * @var AgentAffectation[] $affectations * @var AgentStatut[] $statuts * @var AgentGrade[] $grades * @var string $codeEtabPrincipal */ $this->headTitle($title) Loading @@ -28,7 +29,7 @@ $this->headTitle($title) <div class="col-md-3"> <h2> Statuts <span class="icon information" title="Attention ici ne sont affichés que les statuts associées à la structure principale"></span></h2> <?php foreach ($statuts as $statut) : ?> <?php if ($statut->getStructure()->getCode() === 'UNIV') : ?> <?php if ($statut->getStructure()->getCode() === $codeEtabPrincipal) : ?> <?php echo $this->agentStatut($statut, ['structure' => true, 'periode' => true, 'temoin' => true]); ?> <?php endif; ?> <?php endforeach; ?> Loading