Commit db891cc8 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Affichage précautionneux pour les agents grades

parent 299291e2
Loading
Loading
Loading
Loading
+0 −0

Empty file added.

+15 −0
Changes for module/Structure/view/structure/structure/partial/campagne.phtml: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -283,7 +283,22 @@ foreach ($encours as $epro) {
            <td> <?php echo $denomination; ?> </td>
            <td>
                <?php foreach ($agent->getGradesActifs() as $grade) : ?>
                    <?php $structure = $grade->getStructure(); ?>
                    <?php if ($structure === null) : ?>
                        <span class="text-danger">
                            <span class="icon icon-unchecked"></span>
                            Aucun structure
                        </span>
                    <?php else : ?>
                        <?php if ($structure->getLibelleLong() === null) : ?>
                            <span class="text-warning">
                                <span class="icon icon-attention"></span>
                                    Aucun libellé long pour la structure <?php echo $structure->getId(); ?>
                            </span>
                        <?php else : ?>
                            <?php echo $grade->getStructure()->getLibelleLong(); ?>
                        <?php endif; ?>
                    <?php endif; ?>
                <?php endforeach; ?>
            </td>
            <td>