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

Ajout des infos bulles

parent b5521995
Loading
Loading
Loading
Loading
+15 −8
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ use Application\Provider\Privilege\PresidentJuryPrivileges;
 * @var Acteur[] $presidents
 */

$this->headTitle("Gestion des présidents du jury");
$this->headTitle("Gestion des comptes associés aux présidents du jury");


function afficherActeur(Acteur $a) {
@@ -127,7 +127,7 @@ $canNotifierPresident = $this->isAllowed(PresidentJuryPrivileges::getResourc
?>

<h1 class="page-header">
    Gestion des présidents du jury
    Gestion des comptes associés aux présidents du jury
</h1>

<?php echo $this->messenger()->addMessagesFromFlashMessengerWithNoNamespace() ?>
@@ -143,7 +143,7 @@ $canNotifierPresident = $this->isAllowed(PresidentJuryPrivileges::getResourc
                <th> Membre<br/>Mail</th>
                <th> These </th>
                <th> Correction </th>
                <th> Effectuées </th>
                <th> Version<br/>corrigée </th>
                <th> Validation </th>
                <th> Action </th>
            </tr>
@@ -155,14 +155,16 @@ $canNotifierPresident = $this->isAllowed(PresidentJuryPrivileges::getResourc
                ?>
                <tr>
                    <td> <?php echo afficherActeur($president); ?> </td>
                    <td> <?php echo afficherUtilisateur($president); ?> </td>
                    <td> <?php echo afficherMailIndividu($president); ?> </td>
                    <td> <?php echo afficherMailMembre($president) ; ?> </td>
                    <td> <center><?php echo afficherUtilisateur($president); ?> </center></td>
                    <td> <center><?php echo afficherMailIndividu($president); ?> </center></td>
                    <td> <center><?php echo afficherMailMembre($president) ; ?> </center></td>
                    <td> <?php echo afficherThese($president, $this); ?> </td>
                    <td> <?php echo afficherCorrection($president); ?> </td>
                    <td> <?php echo afficherCorrectionEffectuees($president); ?> </td>
                    <td> <center><?php echo afficherCorrectionEffectuees($president); ?> </center></td>
                    <td> <?php echo afficherValidations($president); ?> </td>
                    <td>
                        <?php $validations = $president->getThese()->getValidations('CORRECTION_THESE')->toArray(); ?>
                        <?php if (empty($validations)) : ?>
                            <?php if ($canModifierMailPresident) : ?>
                                <?php if (empty($utilisateurs)) : ?>

@@ -170,6 +172,7 @@ $canNotifierPresident = $this->isAllowed(PresidentJuryPrivileges::getResourc
                                    <?php if ($president->getMembre() === null) : ?>
                                        <a href="<?php echo $this->url('president-jury/ajouter-mail', ['president' => $president->getId()], [], true); ?>"
                                           class="ajax-modal" data-event="modification"
                                           title="Ajout d'un email pour le président du jury"
                                        >
                                            <span class="glyphicon glyphicon-plus"></span> </a>
                                    <?php else :?>
@@ -177,6 +180,7 @@ $canNotifierPresident = $this->isAllowed(PresidentJuryPrivileges::getResourc
                                        <!-- // Si membre factisse alors on peut le supprimer pour eventuellement le modifier -->
                                        <?php if ($president->getMembre()->getProposition()->getId() === 0) : ?>
                                            <a href="<?php echo $this->url('president-jury/supprimer-mail', ['president' => $president->getId()], [], true); ?>"
                                               title="Suppression de l'email ajouté manuellement pour le président du jury"
                                            >
                                                <span class="glyphicon glyphicon-trash"></span> </a>
                                        <?php else : ?>
@@ -191,13 +195,16 @@ $canNotifierPresident = $this->isAllowed(PresidentJuryPrivileges::getResourc

                            <?php if ($canNotifierPresident) : ?>
                                <?php if (($president->getIndividu() AND $president->getIndividu()->getEmail()) OR ($president->getMembre() AND $president->getMembre()->getEmail())) : ?>
                                <a href="<?php echo $this->url('president-jury/notifier-correction', ['president' => $president->getId()], [], true); ?>">
                                    <a href="<?php echo $this->url('president-jury/notifier-correction', ['president' => $president->getId()], [], true); ?>"
                                       title="Création du compte & notification du président du jury"
                                    >
                                        <span class="glyphicon glyphicon-send"></span>
                                    </a>
                                <?php else : ?>
                                    <span class="glyphicon glyphicon-send" style="color:white;"></span>
                                <?php endif; ?>
                            <?php endif; ?>
                        <?php endif; ?>
                    </td>
                </tr>
            <?php endforeach; ?>