Loading module/Structure/src/Structure/Controller/EtablissementController.php +3 −2 Changes for module/Structure/src/Structure/Controller/EtablissementController.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Structure\Controller; use Application\Entity\Db\Role; use Application\Service\Variable\VariableServiceAwareTrait; use InvalidArgumentException; use Structure\Entity\Db\Etablissement; Loading Loading @@ -87,7 +88,7 @@ class EtablissementController extends StructureConcreteController { $vars = parent::loadInformationForStructure($structureConcrete); $contenus = $this->getStructureDocumentService()->getContenusFichiers($structureConcrete->getStructure()); $contenusFichiers = $this->getStructureDocumentService()->getContenusFichiers($structureConcrete->getStructure()); $roleListings = []; $individuListings = []; Loading Loading @@ -122,7 +123,7 @@ class EtablissementController extends StructureConcreteController 'roleListing' => $roleListings, 'individuListing' => $individuListings, 'logoContent' => $this->structureService->getLogoStructureContent($structureConcrete->getStructure()), 'contenus' => $contenus, 'contenusFichiers' => $contenusFichiers, 'variables' => $variables ]); } Loading module/Structure/view/structure/etablissement/information.phtml +35 −5 Changes for module/Structure/view/structure/etablissement/information.phtml: 35 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -8,14 +8,16 @@ * @var array $individuListing (string => string[]) * @var string $logoContent * @var string $signatureConvocation * @var string[] $contenus * @var string[] $contenusFichiers * @var \Application\Entity\Db\Variable[] $variables */ use Individu\Provider\Privilege\IndividuPrivileges; use Structure\Controller\StructureController; use Structure\Entity\Db\Etablissement; use Structure\Entity\Db\TypeStructure; use Structure\Provider\Privilege\StructurePrivileges; use UnicaenAuth\Provider\Privilege\Privileges; $this->headTitle("Établissement '{$etablissement->getStructure()->getLibelle()}'"); Loading @@ -42,6 +44,7 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; <?php echo $this->messenger()->addMessagesFromFlashMessengerWithNoNamespace() ?> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="nav-item"> <a class="nav-link <?php echo $tab === StructureController::TAB_infos ? 'active' : '' ?>" Loading Loading @@ -83,7 +86,10 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; </li> </ul> <div class="tab-content <?php echo $tab === StructureController::TAB_infos ? '' : 'd-none' ?>" id="informations"> <div class="row"> <div class="col-md-4"> <?php echo $this->partial('structure/etablissement/partial/information', ['entity' => $etablissement]) ?> Loading Loading @@ -149,21 +155,37 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; <span class="icon icon-restaurer"></span> Restaurer cet établissement </a> <?php endif; ?> </div> <div class="tab-content <?php echo $tab === StructureController::TAB_membres ? '' : 'd-none' ?>" id="membres"> <h2> <h2 class="first"> Rôles et membres </h2> <p class="lead"> Voici les <em>rôles liés à cet établissement</em> et les individus auxquels ont été attribués ces rôles. <br> NB : les rôles comme "Doctorant" ou "Directeur de thèse" ne sont pas liés à un établissement mais à une thèse donc ne peuvent figurer sur cette page. <br> <?php $canVisualiserIndividu = $this->isAllowed(Privileges::getResourceId(IndividuPrivileges::INDIVIDU_LISTER)); if ($canVisualiserIndividu): ?> L'attribution d'un rôle à un quelqu'un n'est pas possible ici, vous devez le faire sur la fiche de l'individu (rendez-vous sur la <a href="<?php echo $this->url('individu') ?>">page de recherche d'individu</a>). <?php endif ?> </p> <div class="row"> <?php foreach ($roleListing as $roleId => $count) :?> <div class="col-md-4"> <div class="col-3 mb-4"> <h3> <?php echo $roleId; ?> <span class="badge bg-secondary"><?php echo $count; ?></span> </h3> <?php if ($count): ?> <ul> <?php foreach($individuListing as $denomination => $roles): ?> <?php foreach($roles as $role): ?> Loading @@ -173,6 +195,9 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; <?php endforeach; ?> <?php endforeach; ?> </ul> <?php else: ?> Personne. <?php endif; ?> </div> <?php endforeach; ?> </div> Loading @@ -187,16 +212,21 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; Générer rôles par défaut </a> <?php endif; ?> </div> <?php if ($etablissement->estInscription()): ?> <div class="tab-content <?php echo $tab === StructureController::TAB_docs ? '' : 'd-none' ?>" id="documents"> <?php echo $this->partial('structure/structure/partial/documents', ['structure' => $etablissement->getStructure(), 'contenus' => $contenus]); ?> <?php echo $this->partial('structure/structure/partial/documents', ['structure' => $etablissement->getStructure(), 'contenusFichiers' => $contenusFichiers]); ?> </div> <?php endif; ?> <div class="tab-content <?php echo $tab === StructureController::TAB_variables ? '' : 'd-none' ?>" id="variables"> <?php echo $this->partial('structure/variable/index', ['etablissement' => $etablissement, 'variables' => $variables]); ?> Loading module/Structure/view/structure/structure/partial/documents.phtml +5 −4 Changes for module/Structure/view/structure/structure/partial/documents.phtml: 5 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ /** * @var Structure $structure * @var string[] $contenus * @var string[] $contenusFichiers */ use Structure\Entity\Db\Etablissement; Loading @@ -10,8 +10,7 @@ use Structure\Entity\Db\Structure; ?> <h2> Documents liés à la structure </h2> <p> <p class="float-end"> <?php $televerserUrlOptions = ['structure' => $structure->getId()]; if ($structure instanceof Etablissement) { Loading @@ -26,6 +25,8 @@ use Structure\Entity\Db\Structure; </a> </p> <h2 class="first"> Documents liés à la structure </h2> <table class="table table-hover"> <thead> <tr> Loading Loading @@ -53,7 +54,7 @@ use Structure\Entity\Db\Structure; </td> <?php endif ?> <td> <img class="signature" src="data:image/*;base64,<?php echo base64_encode($contenus[$document->getId()]); ?>"/> <img class="signature" src="data:image/*;base64,<?php echo base64_encode($contenusFichiers[$document->getId()]); ?>"/> <?php /** @see \Structure\Controller\StructureController::supprimerDocumentAction() */ ?> <a href="<?php echo $this->url('structure/supprimer-document', ['structure' => $structure->getId(), 'document' => $document->getId()], [], true); ?>"> Loading module/These/src/These/Service/These/TheseService.php +1 −1 Changes for module/These/src/These/Service/These/TheseService.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -295,7 +295,7 @@ class TheseService extends BaseService $acteurData->setRole("Rapporteur non membre du jury"); } } else { $acteurData->setRole(Role::LIBELLE_PRESIDENT); $acteurData->setRole("Président du jury"); } /** GESTION DES QUALITES **********************************************************************************/ Loading public/css/app.css +3 −5 Changes for public/css/app.css: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -6,15 +6,15 @@ h1, h2, h3 { font-weight: bold; } h1.first, h2.first, h3.first, h4.first { margin-top: 0; } h1 small { color: #7f8c8d; } h2 { margin-top: 35px; } h2:nth-of-type(1) { margin-top: 20px; } h3 { margin-bottom: 10px; border-left: 4px solid var(--primary-color); Loading Loading @@ -86,8 +86,6 @@ h2.modal-title { font-weight: bold; } .card.box .card-body h3:nth-of-type(1) { margin-top: 0; } .card.box .card-body h1.first, .card.box .card-body h2.first, .card.box .card-body h3.first, .card.box .card-body h4.first { margin-top: 0; } .card.box .card-body div.messenger.alert { width: 33%; min-width: 350px; Loading Loading
module/Structure/src/Structure/Controller/EtablissementController.php +3 −2 Changes for module/Structure/src/Structure/Controller/EtablissementController.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Structure\Controller; use Application\Entity\Db\Role; use Application\Service\Variable\VariableServiceAwareTrait; use InvalidArgumentException; use Structure\Entity\Db\Etablissement; Loading Loading @@ -87,7 +88,7 @@ class EtablissementController extends StructureConcreteController { $vars = parent::loadInformationForStructure($structureConcrete); $contenus = $this->getStructureDocumentService()->getContenusFichiers($structureConcrete->getStructure()); $contenusFichiers = $this->getStructureDocumentService()->getContenusFichiers($structureConcrete->getStructure()); $roleListings = []; $individuListings = []; Loading Loading @@ -122,7 +123,7 @@ class EtablissementController extends StructureConcreteController 'roleListing' => $roleListings, 'individuListing' => $individuListings, 'logoContent' => $this->structureService->getLogoStructureContent($structureConcrete->getStructure()), 'contenus' => $contenus, 'contenusFichiers' => $contenusFichiers, 'variables' => $variables ]); } Loading
module/Structure/view/structure/etablissement/information.phtml +35 −5 Changes for module/Structure/view/structure/etablissement/information.phtml: 35 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -8,14 +8,16 @@ * @var array $individuListing (string => string[]) * @var string $logoContent * @var string $signatureConvocation * @var string[] $contenus * @var string[] $contenusFichiers * @var \Application\Entity\Db\Variable[] $variables */ use Individu\Provider\Privilege\IndividuPrivileges; use Structure\Controller\StructureController; use Structure\Entity\Db\Etablissement; use Structure\Entity\Db\TypeStructure; use Structure\Provider\Privilege\StructurePrivileges; use UnicaenAuth\Provider\Privilege\Privileges; $this->headTitle("Établissement '{$etablissement->getStructure()->getLibelle()}'"); Loading @@ -42,6 +44,7 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; <?php echo $this->messenger()->addMessagesFromFlashMessengerWithNoNamespace() ?> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="nav-item"> <a class="nav-link <?php echo $tab === StructureController::TAB_infos ? 'active' : '' ?>" Loading Loading @@ -83,7 +86,10 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; </li> </ul> <div class="tab-content <?php echo $tab === StructureController::TAB_infos ? '' : 'd-none' ?>" id="informations"> <div class="row"> <div class="col-md-4"> <?php echo $this->partial('structure/etablissement/partial/information', ['entity' => $etablissement]) ?> Loading Loading @@ -149,21 +155,37 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; <span class="icon icon-restaurer"></span> Restaurer cet établissement </a> <?php endif; ?> </div> <div class="tab-content <?php echo $tab === StructureController::TAB_membres ? '' : 'd-none' ?>" id="membres"> <h2> <h2 class="first"> Rôles et membres </h2> <p class="lead"> Voici les <em>rôles liés à cet établissement</em> et les individus auxquels ont été attribués ces rôles. <br> NB : les rôles comme "Doctorant" ou "Directeur de thèse" ne sont pas liés à un établissement mais à une thèse donc ne peuvent figurer sur cette page. <br> <?php $canVisualiserIndividu = $this->isAllowed(Privileges::getResourceId(IndividuPrivileges::INDIVIDU_LISTER)); if ($canVisualiserIndividu): ?> L'attribution d'un rôle à un quelqu'un n'est pas possible ici, vous devez le faire sur la fiche de l'individu (rendez-vous sur la <a href="<?php echo $this->url('individu') ?>">page de recherche d'individu</a>). <?php endif ?> </p> <div class="row"> <?php foreach ($roleListing as $roleId => $count) :?> <div class="col-md-4"> <div class="col-3 mb-4"> <h3> <?php echo $roleId; ?> <span class="badge bg-secondary"><?php echo $count; ?></span> </h3> <?php if ($count): ?> <ul> <?php foreach($individuListing as $denomination => $roles): ?> <?php foreach($roles as $role): ?> Loading @@ -173,6 +195,9 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; <?php endforeach; ?> <?php endforeach; ?> </ul> <?php else: ?> Personne. <?php endif; ?> </div> <?php endforeach; ?> </div> Loading @@ -187,16 +212,21 @@ $tab = $this->queryParams()['tab'] ?? StructureController::TAB_infos; Générer rôles par défaut </a> <?php endif; ?> </div> <?php if ($etablissement->estInscription()): ?> <div class="tab-content <?php echo $tab === StructureController::TAB_docs ? '' : 'd-none' ?>" id="documents"> <?php echo $this->partial('structure/structure/partial/documents', ['structure' => $etablissement->getStructure(), 'contenus' => $contenus]); ?> <?php echo $this->partial('structure/structure/partial/documents', ['structure' => $etablissement->getStructure(), 'contenusFichiers' => $contenusFichiers]); ?> </div> <?php endif; ?> <div class="tab-content <?php echo $tab === StructureController::TAB_variables ? '' : 'd-none' ?>" id="variables"> <?php echo $this->partial('structure/variable/index', ['etablissement' => $etablissement, 'variables' => $variables]); ?> Loading
module/Structure/view/structure/structure/partial/documents.phtml +5 −4 Changes for module/Structure/view/structure/structure/partial/documents.phtml: 5 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ /** * @var Structure $structure * @var string[] $contenus * @var string[] $contenusFichiers */ use Structure\Entity\Db\Etablissement; Loading @@ -10,8 +10,7 @@ use Structure\Entity\Db\Structure; ?> <h2> Documents liés à la structure </h2> <p> <p class="float-end"> <?php $televerserUrlOptions = ['structure' => $structure->getId()]; if ($structure instanceof Etablissement) { Loading @@ -26,6 +25,8 @@ use Structure\Entity\Db\Structure; </a> </p> <h2 class="first"> Documents liés à la structure </h2> <table class="table table-hover"> <thead> <tr> Loading Loading @@ -53,7 +54,7 @@ use Structure\Entity\Db\Structure; </td> <?php endif ?> <td> <img class="signature" src="data:image/*;base64,<?php echo base64_encode($contenus[$document->getId()]); ?>"/> <img class="signature" src="data:image/*;base64,<?php echo base64_encode($contenusFichiers[$document->getId()]); ?>"/> <?php /** @see \Structure\Controller\StructureController::supprimerDocumentAction() */ ?> <a href="<?php echo $this->url('structure/supprimer-document', ['structure' => $structure->getId(), 'document' => $document->getId()], [], true); ?>"> Loading
module/These/src/These/Service/These/TheseService.php +1 −1 Changes for module/These/src/These/Service/These/TheseService.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -295,7 +295,7 @@ class TheseService extends BaseService $acteurData->setRole("Rapporteur non membre du jury"); } } else { $acteurData->setRole(Role::LIBELLE_PRESIDENT); $acteurData->setRole("Président du jury"); } /** GESTION DES QUALITES **********************************************************************************/ Loading
public/css/app.css +3 −5 Changes for public/css/app.css: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -6,15 +6,15 @@ h1, h2, h3 { font-weight: bold; } h1.first, h2.first, h3.first, h4.first { margin-top: 0; } h1 small { color: #7f8c8d; } h2 { margin-top: 35px; } h2:nth-of-type(1) { margin-top: 20px; } h3 { margin-bottom: 10px; border-left: 4px solid var(--primary-color); Loading Loading @@ -86,8 +86,6 @@ h2.modal-title { font-weight: bold; } .card.box .card-body h3:nth-of-type(1) { margin-top: 0; } .card.box .card-body h1.first, .card.box .card-body h2.first, .card.box .card-body h3.first, .card.box .card-body h4.first { margin-top: 0; } .card.box .card-body div.messenger.alert { width: 33%; min-width: 350px; Loading