Loading .gitignore +4 −0 Changes for .gitignore: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -15,6 +15,10 @@ config/autoload/unicaen-auth.local.php /logs/* !/logs/.gitkeep # custom /public/custom/* !/public/custom/.gitkeep # Data & Cache data/* !data/backup_oscar-empty.sql Loading module/Oscar/src/Oscar/Controller/PersonController.php +3 −0 Changes for module/Oscar/src/Oscar/Controller/PersonController.php: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -483,7 +483,10 @@ class PersonController extends AbstractOscarController ->where('r.principal = true') ; $dbroles =$this->getPersonService()->getRolesByAuthentification(); return [ 'dbroles' => $dbroles, 'ldapFilters' => $this->getEntityManager()->getRepository(Person::class)->getRolesLdapUsed(), 'persons' => new UnicaenDoctrinePaginator($persons, $page) ]; Loading module/Oscar/view/layout/layout.phtml +1 −0 Changes for module/Oscar/view/layout/layout.phtml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ $this->headScript() <link rel="stylesheet" href="<?= $this->basePath() . '/css/app.css' ?>"> <?php endif;*/ ?> <link rel="stylesheet" href="<?= $this->basePath() . '/css/app.css' ?>"> <link rel="stylesheet" href="<?= $this->basePath() . '/custom/custom.css' ?>"> <?php /* echo $this->headLink(array( 'rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', Loading module/Oscar/view/oscar/person/boss.phtml +7 −1 Changes for module/Oscar/view/oscar/person/boss.phtml: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -22,7 +22,13 @@ $search = ""; <h3 class="text-center"><?= count($persons) ?> résultat(s) - page <?= $persons->getCurrentPage() ?> / <?= $persons->getCountPage() ?></h3> <?php foreach( $persons as $person ): ?> <?= $this->partial('/oscar/person/item-list.phtml', ['person' => $person, 'markText' => $markText, 'search' => $search, 'ldapFilters' => $ldapFilters]) ?> <?= $this->partial('/oscar/person/item-list.phtml', [ 'person' => $person, 'markText' => $markText, 'search' => $search, 'ldapFilters' => $ldapFilters, 'dbroles'=> array_key_exists($person->getLadapLogin(), $dbroles) ? $dbroles[$person->getLadapLogin()] : [] ]) ?> <?php endforeach; ?> Loading public/custom/.gitkeep 0 → 100644 +0 −0 Empty file added. Loading
.gitignore +4 −0 Changes for .gitignore: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -15,6 +15,10 @@ config/autoload/unicaen-auth.local.php /logs/* !/logs/.gitkeep # custom /public/custom/* !/public/custom/.gitkeep # Data & Cache data/* !data/backup_oscar-empty.sql Loading
module/Oscar/src/Oscar/Controller/PersonController.php +3 −0 Changes for module/Oscar/src/Oscar/Controller/PersonController.php: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -483,7 +483,10 @@ class PersonController extends AbstractOscarController ->where('r.principal = true') ; $dbroles =$this->getPersonService()->getRolesByAuthentification(); return [ 'dbroles' => $dbroles, 'ldapFilters' => $this->getEntityManager()->getRepository(Person::class)->getRolesLdapUsed(), 'persons' => new UnicaenDoctrinePaginator($persons, $page) ]; Loading
module/Oscar/view/layout/layout.phtml +1 −0 Changes for module/Oscar/view/layout/layout.phtml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ $this->headScript() <link rel="stylesheet" href="<?= $this->basePath() . '/css/app.css' ?>"> <?php endif;*/ ?> <link rel="stylesheet" href="<?= $this->basePath() . '/css/app.css' ?>"> <link rel="stylesheet" href="<?= $this->basePath() . '/custom/custom.css' ?>"> <?php /* echo $this->headLink(array( 'rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', Loading
module/Oscar/view/oscar/person/boss.phtml +7 −1 Changes for module/Oscar/view/oscar/person/boss.phtml: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -22,7 +22,13 @@ $search = ""; <h3 class="text-center"><?= count($persons) ?> résultat(s) - page <?= $persons->getCurrentPage() ?> / <?= $persons->getCountPage() ?></h3> <?php foreach( $persons as $person ): ?> <?= $this->partial('/oscar/person/item-list.phtml', ['person' => $person, 'markText' => $markText, 'search' => $search, 'ldapFilters' => $ldapFilters]) ?> <?= $this->partial('/oscar/person/item-list.phtml', [ 'person' => $person, 'markText' => $markText, 'search' => $search, 'ldapFilters' => $ldapFilters, 'dbroles'=> array_key_exists($person->getLadapLogin(), $dbroles) ? $dbroles[$person->getLadapLogin()] : [] ]) ?> <?php endforeach; ?> Loading