Commit 39071fef authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Page des privilèges accordés aux profils : cosmétiques + ancres de navigation...

Page des privilèges accordés aux profils : cosmétiques + ancres de navigation sur les catégories et privilèges.
parent a1ac390e
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ Journal des modifications

8.2.0
-----
- Page des privilèges accordés aux profils : cosmétiques + ancres de navigation sur les catégories et privilèges.
- [FIX] Step-Star : requête de sélection des thèses à envoyer (colonne erronée pour le filtre établissement).
- [FIX] Page de couverture de thèse : l'établissement affiché pour le codir était l'établissement du dernier membre du jury affiché.

+32 −18
Changes for module/Application/view/application/profil/index.phtml: 32 added lines, 18 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
/**
 * @var \Application\Entity\Db\Profil[] $profils
 * @var \Application\Entity\Db\Privilege[] $privileges
 *
 * @see \Application\Controller\ProfilController::indexAction()
 */
$this->headTitle("Profils");

@@ -12,6 +14,10 @@ $canManage = true;
$canChangePrivilege = true;
?>

<a href="<?php echo $this->url('profil/editer', [], [], true); ?>" class="btn btn-primary float-end ajax-modal" data-event="modification">
    <span class="icon icon-plus"></span> Ajouter un nouveau profil
</a>

<h1 class="page-header">
    Profils
    <span class="badge bg-secondary">
@@ -19,19 +25,13 @@ $canChangePrivilege = true;
    </span>
</h1>

<h2> Liste des profils </h2>

<a href="<?php echo $this->url('profil/editer', [], [], true); ?>" class="btn btn-primary ajax-modal" data-event="modification">
    <span class="icon icon-plus"></span> Ajouter un nouveau profil
</a>

<table class="table table-sm">
    <thead>
    <tr>
        <th> Code </th>
        <th> Libellé </th>
        <th> Structure dépendant </th>
        <th> Nombre de rôle ayant le profil </th>
        <th> Nombre de rôles ayant le profil </th>
        <th> Action </th>
    </tr>
    </thead>
@@ -69,9 +69,9 @@ $canChangePrivilege = true;
    </tbody>
</table>

<h2> Gestion des privilèges accordés aux profils </h2>
<h2> Privilèges accordés aux profils </h2>

<table class="table table--condensed">
<table class="table table-extra-condensed">
    <thead>
    <tr>
        <th> Privilège </th>
@@ -86,11 +86,23 @@ $canChangePrivilege = true;
        <?php if ($previous != $privilege->getCategorie()): ?>
            <tr>
                <?php $previous = $privilege->getCategorie(); ?>
                <td class="categorie" colspan="<?php echo (1 + count($profils)); ?>"><span title="<?php echo $previous->getCode() ?>"><?php echo $previous ?></span></td>
                <td class="categorie" colspan="<?php echo (1 + count($profils)); ?>">
                    <?php $id = $privilege->getCategorie()->getCode() ?>
                    <a id="<?php echo $id ?>" class="anchor" href="#<?php echo $id ?>"></a>
                    <a href="#<?php echo $id ?>" class="anchored">
                        <h3 title="<?php echo $previous->getCode() ?>"><?php echo $previous ?></h3>
                    </a>
                </td>
            </tr>
        <?php endif; ?>
        <tr data-legend="<?php echo $privilege->getLibelle() ?>">
            <th><span title="<?php echo $privilege->getCode() ?>"><?php echo $privilege ?></span></th>
            <th class="privilege">
                <?php $id = $privilege->getCategorie()->getCode() . '-' . $privilege->getCode() ?>
                <a id="<?php echo $id ?>" class="anchor" href="#<?php echo $id ?>"></a>
                <a href="#<?php echo $id ?>" class="anchored">
                    <span title="<?php echo $privilege->getCode() ?>"><?php echo $privilege ?></span>
                </a>
            </th>
            <?php foreach ($profils as $profil) : ?>
                <td class="<?php echo ($profil->getStructureType())?$profil->getStructureType()->getCode():"aucun"; ?>" id="<?php echo $privilege->getId(); ?>_<?php echo $profil->getId();?>"
                    data-legend="<?php echo $profil->getLibelle() ?>">
@@ -108,23 +120,25 @@ $canChangePrivilege = true;


<style>
    td.categorie {
        font-size:  small;
        background-color: lightblue;
    td.categorie h3 {
        margin: .5rem 0 0;
    }
    th.privilege {
        font-weight: 400;
    }

    td.aucun {
        background-color: lightgoldenrodyellow;
        background-color: rgba(250, 250, 210, 0.75);
    }

    td.ecole-doctorale {
        background-color: #F1CEFF;
        background-color: rgba(241, 206, 255, 0.75);
    }
    td.unite-recherche {
        background-color: #c8e7ff;
        background-color: rgba(200, 231, 255, 0.75);
    }
    td.etablissement {
        background-color: #dcffe9;
        background-color: rgba(220, 255, 233, 0.75);
    }

    span.checkable {
+9 −0
Changes for public/css/app.css: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -8,6 +8,15 @@ h2 {
h2:nth-of-type(1) {
  margin-top: 20px; }

a.anchor {
  display: block;
  position: relative;
  top: -56px;
  visibility: hidden; }

a.anchored {
  color: inherit; }

#footer a.logo-etablissement {
  background-image: url("/logo-etablissement.png");
  background-repeat: no-repeat;
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+10 −0
Changes for public/css/app.scss: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -21,6 +21,16 @@ h2:nth-of-type(1) {
  margin-top: 20px;
}

a.anchor {
  display: block;
  position: relative;
  top: -56px; // pour tenir compte du "fixed top navbar"
  visibility: hidden;
}
a.anchored {
  color: inherit;
}

#footer a.logo-etablissement {
  background-image: url('/logo-etablissement.png');
  background-repeat: no-repeat;