Commit c700697b authored by root's avatar root
Browse files

Merge branch 'master' of https://git.unicaen.fr/dsi/preecog

parents 6e4b6c39 50326539
Loading
Loading
Loading
Loading
+4
Changes for module/Application/src/Application/Controller/AgentController.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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,
        ]);
    }

+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
@@ -12,6 +12,7 @@ use Application\Entity\Db\AgentStatut;
 * @var AgentAffectation[] $affectations
 * @var AgentStatut[] $statuts
 * @var AgentGrade[] $grades
 * @var string $codeEtabPrincipal
 */

$this->headTitle($title)
@@ -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; ?>