Commit 782414c3 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Structures : amélioration visuelle sur la page listant les structures (Etablissement, ED, UR).

parent 584a3a4f
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ Journal des modifications
- Stockage de fichier S3/Filesystem : plus de copie sur disque dans le cas d'une demande d'un fichier issu du Filesystem.
- Inclusion au script de purge des fichiers temporaires ceux générés par le FichierStorageService.
- Module Substitutions : amélioration de fonctions pgsql du moteur de substitutions.
- Structures : amélioration visuelle sur la page listant les structures (Etablissement, ED, UR).
- [FIX] Module Substitutions : plantage de la page consacrée aux doublons (substitutions possibles). 
- [FIX] Page Assistance : plantage de la page lorsque le rôle de l'utilisateur est structure-dépendant.

+9 −6
Changes for module/Structure/view/structure/ecole-doctorale/index.phtml: 9 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ $canAjouter = $this->isAllowed(StructurePrivileges::getResourceId(StructurePrivi
        <thead>
        <tr>
            <th> Libellé</th>
            <th> </th>
            <th> Source</th>
            <th> Code</th>
            <th> Sigle</th>
@@ -58,17 +59,19 @@ $canAjouter = $this->isAllowed(StructurePrivileges::getResourceId(StructurePrivi
                    <a href="<?php echo $this->url('ecole-doctorale/voir', ['ecole-doctorale' => $ecole->getId()], [], true); ?>">
                        <?php echo $ecole->getStructure()->getLibelle(); ?>
                    </a>
                    <?php if ($ecole->estSubstituant()) : ?>
                        <a href="<?php echo $this->url('substitution/substitution/voir', ['type' => \Substitution\Constants::TYPE_ecole_doct, 'id' => $ecole->getId()]) ?>"
                           title="Accéder aux détails de cette substitution">
                            <span class="badge bg-info" title="Cet enregistrement substitue d'autres enregistrements">S</span></a>
                    <?php endif; ?>
                </td>
                <td>
                    <?php if ($ecole->getStructure()->estFermee()) : ?>
                        &nbsp;<span class="badge bg-danger">Structure fermée</span>
                        &nbsp;<span class="badge bg-danger" title="Structure fermée">Fermée</span>
                    <?php endif; ?>
                </td>
                <td>
                    <?php echo $ecole->getSource(); ?>
                    <?php if ($ecole->estSubstituant()) : ?>
                        <a href="<?php echo $this->url('substitution/substitution/voir', ['type' => \Substitution\Constants::TYPE_ecole_doct, 'id' => $ecole->getId()]) ?>"
                           title="Accéder aux détails de cette substitution">
                            <span class="badge bg-light text-info" title="Cet enregistrement substitue d'autres enregistrements, cliquez pour en savoir plus...">Substitution</span></a>
                    <?php endif; ?>
                </td>
                <td>
                    <?php echo $ecole->getStructure()->getCode(); ?>
+12 −9
Changes for module/Structure/view/structure/etablissement/index.phtml: 12 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ $canAjouter = $this->isAllowed(StructurePrivileges::getResourceId(StructurePrivi
        <thead>
        <tr>
            <th> Libellé </th>
            <th> </th>
            <th> Source </th>
            <th> Code </th>
            <th> Sigle </th>
@@ -72,27 +73,29 @@ $canAjouter = $this->isAllowed(StructurePrivileges::getResourceId(StructurePrivi
                <td>
                    <a href="<?php echo $this->url('etablissement/voir', ['etablissement' => $etablissement->getId()], [], true); ?>">
                        <?php echo $etablissement->getStructure()->getLibelle(); ?>
                        <?php if ($etablissement->estSubstituant()) : ?>
                            <a href="<?php echo $this->url('substitution/substitution/voir', ['type' => \Substitution\Constants::TYPE_etablissement, 'id' => $etablissement->getId()]) ?>"
                               title="Accéder aux détails de cette substitution">
                                <span class="badge bg-info" title="Cet enregistrement substitue d'autres enregistrements">S</span></a>
                        <?php endif; ?>
                    </a>
                </td>
                <td>
                    <?php if ($etablissement->getStructure()->estFermee()) : ?>
                        &nbsp;<span class="badge bg-danger">Structure fermée</span>
                    <?php endif; ?>
                    </a>
                    <?php if ($etablissement->estMembre()): ?>
                        <span class="badge bg-primary">Membre</span>
                        <span class="badge bg-primary" title="Établissement membre">Membre</span>
                    <?php endif ?>
                    <?php if ($etablissement->estAssocie()): ?>
                        <span class="badge bg-info">Associé</span>
                        <span class="badge bg-info" title="Établissement associé">Associé</span>
                    <?php endif ?>
                    <?php if ($etablissement->estInscription()): ?>
                        <span class="badge bg-warning">Inscription</span>
                        <span class="badge bg-warning" title="Établissement d'inscription">Inscription</span>
                    <?php endif ?>
                </td>
                <td>
                    <?php echo $etablissement->getSource(); ?>
                    <?php if ($etablissement->estSubstituant()) : ?>
                        <a href="<?php echo $this->url('substitution/substitution/voir', ['type' => \Substitution\Constants::TYPE_etablissement, 'id' => $etablissement->getId()]) ?>"
                           title="Accéder aux détails de cette substitution">
                            <span class="badge bg-light text-info" title="Cet enregistrement substitue d'autres enregistrements, cliquez pour en savoir plus...">Substitution</span></a>
                    <?php endif; ?>
                </td>
                <td>
                    <?php echo $etablissement->getStructure()->getCode(); ?>
+9 −6
Changes for module/Structure/view/structure/unite-recherche/index.phtml: 9 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ $canAjouter = $this->isAllowed(StructurePrivileges::getResourceId(StructurePrivi
        <thead>
        <tr>
            <th> Libellé</th>
            <th> </th>
            <th> Source</th>
            <th> Code</th>
            <th> Sigle</th>
@@ -60,17 +61,19 @@ $canAjouter = $this->isAllowed(StructurePrivileges::getResourceId(StructurePrivi
                    <a href="<?php echo $this->url('unite-recherche/voir', ['unite-recherche' => $unite->getId()], [], true); ?>">
                        <?php echo $unite->getStructure()->getLibelle(); ?>
                    </a>
                    <?php if ($unite->estSubstituant()) : ?>
                        <a href="<?php echo $this->url('substitution/substitution/voir', ['type' => \Substitution\Constants::TYPE_unite_rech, 'id' => $unite->getId()]) ?>"
                           title="Accéder aux détails de cette substitution">
                            <span class="badge bg-info" title="Cet enregistrement substitue d'autres enregistrements">S</span></a>
                    <?php endif; ?>
                </td>
                <td>
                    <?php if ($unite->getStructure()->estFermee()) : ?>
                        &nbsp;<span class="badge bg-danger">Structure fermée</span>
                        &nbsp;<span class="badge bg-danger" title="Structure fermée">Fermée</span>
                    <?php endif; ?>
                </td>
                <td>
                    <?php echo $unite->getSource(); ?>
                    <?php if ($unite->estSubstituant()) : ?>
                        <a href="<?php echo $this->url('substitution/substitution/voir', ['type' => \Substitution\Constants::TYPE_unite_rech, 'id' => $unite->getId()]) ?>"
                           title="Accéder aux détails de cette substitution">
                            <span class="badge bg-light text-info" title="Cet enregistrement substitue d'autres enregistrements, cliquez pour en savoir plus...">Substitution</span></a>
                    <?php endif; ?>
                </td>
                <td>
                    <?php echo $unite->getStructure()->getCode(); ?>