Loading module/Application/config/merged/menu.config.php +10 −10 Changes for module/Application/config/merged/menu.config.php: 10 added lines, 10 removed lines. Original line number Diff line number Diff line Loading @@ -26,16 +26,16 @@ return [ 'Personnel' ], 'pages' => [ 'index-personnel' => [ 'visible' => true, 'order' => 100, 'label' => 'Mon accueil', 'icon' => 'fas fa-angle-right', 'route' => 'index-personnel', 'roles' => [ 'Personnel', ], ], // 'index-personnel' => [ // 'visible' => true, // 'order' => 100, // 'label' => 'Mon accueil', // 'icon' => 'fas fa-angle-right', // 'route' => 'index-personnel', // 'roles' => [ // 'Personnel', // ], // ], 'entretien' => [ 'visible' => true, 'order' => 200, Loading module/Application/src/Application/Controller/IndexController.php +3 Changes for module/Application/src/Application/Controller/IndexController.php: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -56,15 +56,18 @@ class IndexController extends AbstractActionController return new ViewModel([ 'user' => $identity, 'agent' => $agent, ]); } public function indexPersonnelAction() { $user = $this->getUserService()->getConnectedUser(); $agent = $this->getAgentService()->getAgentByUser($user); return new ViewModel([ 'user' => $user, 'agent' => $agent, ]); } Loading module/Application/view/application/index/index-personnel.phtml +47 Changes for module/Application/view/application/index/index-personnel.phtml: 47 added lines, 0 removed lines. Original line number Diff line number Diff line <?php /** * @var \Application\Entity\Db\Agent $agent * @var \Utilisateur\Entity\Db\User $user */ Loading @@ -13,5 +14,51 @@ $this->headTitle('Accueil de '.$user->getDisplayName()); </h1> <div class="main"> <?php if ($agent !== null) : ?> <div class="alert alert-success"> Votre compte est bien associé à un agent. </div> <?php else : ?> <div class="alert alert-warning"> Votre compte n'est pas associé à un agent. </div> <?php endif; ?> <p class="lead"> Cette page d'accueil vous permet de : <ul> <li> consulter les entretiens professionnels que vous avez passés et de valider ceux-ci lors de leur passage ; </li> <li> mettre en ligne des fichiers associés à votre carrière (CV, lettre de motivation, justificatif de formation, ...) ; </li> <li> lister les données vous concernant que l'application PrEECoG stocke.</li> </ul> </p> <div class="col-md-4"> <?php if ($agent !== null) : ?> <a href="" class="btn btn-primary action"> <span class="icon entretiens"></span> Consulter mes entretiens pro. </a> <?php endif; ?> </div> <div class="col-md-4"> <?php if ($agent !== null) : ?> <a href="<?php echo $this->url('agent/fichiers', ['agent' => $agent->getId()], [], true); ?>" class="btn btn-primary action"> <span class="icon fichiers"></span> Consulter mes fichiers en ligne </a> <?php endif; ?> </div> <div class="col-md-4"> <a href="" class="btn btn-primary action"> <span class="icon donnees"></span> Consulter mes données stockées </a> </div> <br/> <br/> </div> No newline at end of file public/css/app.css +12 Changes for public/css/app.css: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -165,6 +165,18 @@ span.icon.televerser:before { content: "\f093"; } span.icon.entretiens:before { content: "\f51c"; } span.icon.fichiers:before { content: "\f07c"; } span.icon.donnees:before { content: "\f2c2"; } div.survol:hover { background-color: lightgoldenrodyellow; } Loading Loading
module/Application/config/merged/menu.config.php +10 −10 Changes for module/Application/config/merged/menu.config.php: 10 added lines, 10 removed lines. Original line number Diff line number Diff line Loading @@ -26,16 +26,16 @@ return [ 'Personnel' ], 'pages' => [ 'index-personnel' => [ 'visible' => true, 'order' => 100, 'label' => 'Mon accueil', 'icon' => 'fas fa-angle-right', 'route' => 'index-personnel', 'roles' => [ 'Personnel', ], ], // 'index-personnel' => [ // 'visible' => true, // 'order' => 100, // 'label' => 'Mon accueil', // 'icon' => 'fas fa-angle-right', // 'route' => 'index-personnel', // 'roles' => [ // 'Personnel', // ], // ], 'entretien' => [ 'visible' => true, 'order' => 200, Loading
module/Application/src/Application/Controller/IndexController.php +3 Changes for module/Application/src/Application/Controller/IndexController.php: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -56,15 +56,18 @@ class IndexController extends AbstractActionController return new ViewModel([ 'user' => $identity, 'agent' => $agent, ]); } public function indexPersonnelAction() { $user = $this->getUserService()->getConnectedUser(); $agent = $this->getAgentService()->getAgentByUser($user); return new ViewModel([ 'user' => $user, 'agent' => $agent, ]); } Loading
module/Application/view/application/index/index-personnel.phtml +47 Changes for module/Application/view/application/index/index-personnel.phtml: 47 added lines, 0 removed lines. Original line number Diff line number Diff line <?php /** * @var \Application\Entity\Db\Agent $agent * @var \Utilisateur\Entity\Db\User $user */ Loading @@ -13,5 +14,51 @@ $this->headTitle('Accueil de '.$user->getDisplayName()); </h1> <div class="main"> <?php if ($agent !== null) : ?> <div class="alert alert-success"> Votre compte est bien associé à un agent. </div> <?php else : ?> <div class="alert alert-warning"> Votre compte n'est pas associé à un agent. </div> <?php endif; ?> <p class="lead"> Cette page d'accueil vous permet de : <ul> <li> consulter les entretiens professionnels que vous avez passés et de valider ceux-ci lors de leur passage ; </li> <li> mettre en ligne des fichiers associés à votre carrière (CV, lettre de motivation, justificatif de formation, ...) ; </li> <li> lister les données vous concernant que l'application PrEECoG stocke.</li> </ul> </p> <div class="col-md-4"> <?php if ($agent !== null) : ?> <a href="" class="btn btn-primary action"> <span class="icon entretiens"></span> Consulter mes entretiens pro. </a> <?php endif; ?> </div> <div class="col-md-4"> <?php if ($agent !== null) : ?> <a href="<?php echo $this->url('agent/fichiers', ['agent' => $agent->getId()], [], true); ?>" class="btn btn-primary action"> <span class="icon fichiers"></span> Consulter mes fichiers en ligne </a> <?php endif; ?> </div> <div class="col-md-4"> <a href="" class="btn btn-primary action"> <span class="icon donnees"></span> Consulter mes données stockées </a> </div> <br/> <br/> </div> No newline at end of file
public/css/app.css +12 Changes for public/css/app.css: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -165,6 +165,18 @@ span.icon.televerser:before { content: "\f093"; } span.icon.entretiens:before { content: "\f51c"; } span.icon.fichiers:before { content: "\f07c"; } span.icon.donnees:before { content: "\f2c2"; } div.survol:hover { background-color: lightgoldenrodyellow; } Loading