Loading module/Application/config/merged/menu.config.php +62 Changes for module/Application/config/merged/menu.config.php: 62 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,68 @@ return [ 'droits' => [ 'visible' => false, ], 'index-personnel' => [ // 'visible' => false, 'label' => 'Accueil', 'route' => 'index-personnel', 'roles' => [ 'Personnel' ], 'pages' => [ 'index-personnel' => [ 'visible' => true, 'order' => 100, 'label' => 'Mon accueil', 'icon' => 'fas fa-angle-right', 'route' => 'index-personnel', 'roles' => [ 'Personnel', ], ], 'entretien' => [ 'visible' => true, 'order' => 200, 'label' => 'Mes entretiens Pro.', 'icon' => 'fas fa-angle-right', 'route' => 'entretien-professionnel', 'roles' => [ 'Personnel', ], ], 'fichier' => [ 'visible' => true, 'order' => 300, 'label' => 'Mes fichiers', 'icon' => 'fas fa-angle-right', 'route' => 'ressource-rh', 'roles' => [ 'Personnel', ], ], 'rgpd' => [ 'visible' => true, 'order' => 400, 'label' => 'Mes données', 'icon' => 'fas fa-angle-right', 'route' => 'ressource-rh', 'roles' => [ 'Personnel', ], ], ], // 'visible' => false, // 'pages' => [ // [ // 'order' => 1, // 'label' => 'Les corps, grades et status', // 'route' => 'ressource-rh/index-corps-grade-status', // 'privileges' => RessourceRhPrivileges::AFFICHER, // 'dropdown-header' => true, // 'icon' => 'fas fa-angle-right' // ], // ] ], 'ressource' => [ 'order' => 100, 'label' => 'Ressources RH', Loading module/Application/config/module.config.php +15 −4 Changes for module/Application/config/module.config.php: 15 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ return [ 'routes' => [ 'home' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/', 'defaults' => [ Loading @@ -50,7 +51,17 @@ return [ 'action' => 'index', ], ], ], 'index-personnel' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/index-personnel', 'defaults' => [ 'controller' => 'Application\Controller\Index', // <-- change here 'action' => 'index-personnel', ], ], ], 'administration' => [ 'type' => Literal::class, Loading Loading @@ -103,8 +114,8 @@ return [ 'public_files' => [ 'inline_scripts' => [ '100_' => 'js/jquery.ui.datepicker-fr.js', '110_' => 'https://gest.unicaen.fr/public/bootstrap-select-1.9.4/dist/js/bootstrap-select.min.js', '111_' => 'https://gest.unicaen.fr/public/bootstrap-confirmation-2.4.0/bootstrap-confirmation.min.js', //'110_' => 'https://gest.unicaen.fr/public/bootstrap-select-1.9.4/dist/js/bootstrap-select.min.js', //'111_' => 'https://gest.unicaen.fr/public/bootstrap-confirmation-2.4.0/bootstrap-confirmation.min.js', '112_' => 'vendor/font-awesome-5.0.9/fontawesome-all.min.js', '124_' => 'vendor/vakata-jstree-3.3.4/dist/jstree.min.js', '150_' => 'js/tinymce/js/tinymce/tinymce.js', Loading @@ -112,8 +123,8 @@ return [ ], 'stylesheets' => [ '050_bootstrap-theme' => '', '111_' => 'https://gest.unicaen.fr/public/open-sans-gh-pages/open-sans.css', '113_' => 'https://gest.unicaen.fr/public/bootstrap-select-1.9.4/dist/css/bootstrap-select.min.css', //'111_' => 'https://gest.unicaen.fr/public/open-sans-gh-pages/open-sans.css', //'113_' => 'https://gest.unicaen.fr/public/bootstrap-select-1.9.4/dist/css/bootstrap-select.min.css', '121_' => 'vendor/vakata-jstree-3.3.4/dist/themes/proton/style.min.css', ], 'images' => [ Loading module/Application/src/Application/Controller/IndexController.php +19 −1 Changes for module/Application/src/Application/Controller/IndexController.php: 19 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ namespace Application\Controller; use Application\Entity\Db\Activite; use Utilisateur\Entity\Db\Role; use Utilisateur\Service\User\UserServiceAwareTrait; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; Loading @@ -20,12 +20,30 @@ class IndexController extends AbstractActionController public function indexAction() { /** @var Role $connectedRole */ $connectedRole = $this->getUserService()->getConnectedRole(); switch ($connectedRole->getRoleId()) { case Role::PERSONNEL : $this->redirect()->toRoute('index-personnel', [], [], true); break; } $identity = $this->getUserService()->getConnectedUser(); return new ViewModel([ 'user' => $identity, ]); } public function indexPersonnelAction() { $user = $this->getUserService()->getConnectedUser(); return new ViewModel([ 'user' => $user, ]); } public function administrationAction() { return new ViewModel(); } Loading module/Application/view/application/index/index-personnel.phtml +17 Changes for module/Application/view/application/index/index-personnel.phtml: 17 added lines, 0 removed lines. Original line number Diff line number Diff line <?php /** * @var \Utilisateur\Entity\Db\User $user */ $this->headTitle('Accueil de '.$user->getDisplayName()); ?> <h1 class="page-header"> Accueil de <?php echo $user->getDisplayName(); ?> </h1> <div class="main"> </div> Loading
module/Application/config/merged/menu.config.php +62 Changes for module/Application/config/merged/menu.config.php: 62 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,68 @@ return [ 'droits' => [ 'visible' => false, ], 'index-personnel' => [ // 'visible' => false, 'label' => 'Accueil', 'route' => 'index-personnel', 'roles' => [ 'Personnel' ], 'pages' => [ 'index-personnel' => [ 'visible' => true, 'order' => 100, 'label' => 'Mon accueil', 'icon' => 'fas fa-angle-right', 'route' => 'index-personnel', 'roles' => [ 'Personnel', ], ], 'entretien' => [ 'visible' => true, 'order' => 200, 'label' => 'Mes entretiens Pro.', 'icon' => 'fas fa-angle-right', 'route' => 'entretien-professionnel', 'roles' => [ 'Personnel', ], ], 'fichier' => [ 'visible' => true, 'order' => 300, 'label' => 'Mes fichiers', 'icon' => 'fas fa-angle-right', 'route' => 'ressource-rh', 'roles' => [ 'Personnel', ], ], 'rgpd' => [ 'visible' => true, 'order' => 400, 'label' => 'Mes données', 'icon' => 'fas fa-angle-right', 'route' => 'ressource-rh', 'roles' => [ 'Personnel', ], ], ], // 'visible' => false, // 'pages' => [ // [ // 'order' => 1, // 'label' => 'Les corps, grades et status', // 'route' => 'ressource-rh/index-corps-grade-status', // 'privileges' => RessourceRhPrivileges::AFFICHER, // 'dropdown-header' => true, // 'icon' => 'fas fa-angle-right' // ], // ] ], 'ressource' => [ 'order' => 100, 'label' => 'Ressources RH', Loading
module/Application/config/module.config.php +15 −4 Changes for module/Application/config/module.config.php: 15 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ return [ 'routes' => [ 'home' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/', 'defaults' => [ Loading @@ -50,7 +51,17 @@ return [ 'action' => 'index', ], ], ], 'index-personnel' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/index-personnel', 'defaults' => [ 'controller' => 'Application\Controller\Index', // <-- change here 'action' => 'index-personnel', ], ], ], 'administration' => [ 'type' => Literal::class, Loading Loading @@ -103,8 +114,8 @@ return [ 'public_files' => [ 'inline_scripts' => [ '100_' => 'js/jquery.ui.datepicker-fr.js', '110_' => 'https://gest.unicaen.fr/public/bootstrap-select-1.9.4/dist/js/bootstrap-select.min.js', '111_' => 'https://gest.unicaen.fr/public/bootstrap-confirmation-2.4.0/bootstrap-confirmation.min.js', //'110_' => 'https://gest.unicaen.fr/public/bootstrap-select-1.9.4/dist/js/bootstrap-select.min.js', //'111_' => 'https://gest.unicaen.fr/public/bootstrap-confirmation-2.4.0/bootstrap-confirmation.min.js', '112_' => 'vendor/font-awesome-5.0.9/fontawesome-all.min.js', '124_' => 'vendor/vakata-jstree-3.3.4/dist/jstree.min.js', '150_' => 'js/tinymce/js/tinymce/tinymce.js', Loading @@ -112,8 +123,8 @@ return [ ], 'stylesheets' => [ '050_bootstrap-theme' => '', '111_' => 'https://gest.unicaen.fr/public/open-sans-gh-pages/open-sans.css', '113_' => 'https://gest.unicaen.fr/public/bootstrap-select-1.9.4/dist/css/bootstrap-select.min.css', //'111_' => 'https://gest.unicaen.fr/public/open-sans-gh-pages/open-sans.css', //'113_' => 'https://gest.unicaen.fr/public/bootstrap-select-1.9.4/dist/css/bootstrap-select.min.css', '121_' => 'vendor/vakata-jstree-3.3.4/dist/themes/proton/style.min.css', ], 'images' => [ Loading
module/Application/src/Application/Controller/IndexController.php +19 −1 Changes for module/Application/src/Application/Controller/IndexController.php: 19 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ namespace Application\Controller; use Application\Entity\Db\Activite; use Utilisateur\Entity\Db\Role; use Utilisateur\Service\User\UserServiceAwareTrait; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; Loading @@ -20,12 +20,30 @@ class IndexController extends AbstractActionController public function indexAction() { /** @var Role $connectedRole */ $connectedRole = $this->getUserService()->getConnectedRole(); switch ($connectedRole->getRoleId()) { case Role::PERSONNEL : $this->redirect()->toRoute('index-personnel', [], [], true); break; } $identity = $this->getUserService()->getConnectedUser(); return new ViewModel([ 'user' => $identity, ]); } public function indexPersonnelAction() { $user = $this->getUserService()->getConnectedUser(); return new ViewModel([ 'user' => $user, ]); } public function administrationAction() { return new ViewModel(); } Loading
module/Application/view/application/index/index-personnel.phtml +17 Changes for module/Application/view/application/index/index-personnel.phtml: 17 added lines, 0 removed lines. Original line number Diff line number Diff line <?php /** * @var \Utilisateur\Entity\Db\User $user */ $this->headTitle('Accueil de '.$user->getDisplayName()); ?> <h1 class="page-header"> Accueil de <?php echo $user->getDisplayName(); ?> </h1> <div class="main"> </div>