Commit 650c4e2d authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Visibilité du bouton de suppression d'un avis de soutenance malgré...

[FIX] Visibilité du bouton de suppression d'un avis de soutenance malgré l'état de la proposition de soutenance.
parent 079ae2b1
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ Journal des modifications
------
- [FIX] Recherche littérale de comptes utilisateurs.
- [FIX] Plantage de la page de visualisation des détails d'une inscription administrative reçue de Pégase.
- [FIX] Visibilité du bouton de suppression d'un avis de soutenance malgré l'état de la proposition de soutenance.

13.7.0
------
+13 −11
Changes for module/Soutenance/view/soutenance/index/these/index-rapporteur.phtml: 13 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 * @var These[] $theses
 * @var Membre $membre
 * @var ActeurThese|null $acteurMembre
 * @var boolean $depot
 * @var bool $depot
 * @var These $these
 * @var ValidationThese $engagement
 * @var AvisMembre $avis
@@ -27,8 +27,8 @@ use Validation\Entity\Db\ValidationThese;

$canEngagement = true;
$canTelecharger = true;
$canAvis = true;
$canAnnuler = ($membre)?$this->isAllowed($acteurMembre, AvisMembreSoutenancePrivileges::AVIS_ANNULER):false;
$canAvis = $membre && $this->isAllowed($acteurMembre, AvisMembreSoutenancePrivileges::AVIS_MODIFIER);
$canAnnuler = $membre && $this->isAllowed($acteurMembre, AvisMembreSoutenancePrivileges::AVIS_ANNULER);

$libelleEntite = $typeProposition === Proposition::ROUTE_PARAM_PROPOSITION_THESE ? "thèse" : "HDR";
?>
@@ -149,7 +149,6 @@ $libelleEntite = $typeProposition === Proposition::ROUTE_PARAM_PROPOSITION_THESE
                   class="btn btn-primary float-end"
                >
                    <span class="icon icon-edit"></span>
<!--                Signer / Sign-->
                    Accès à l'engagement d'impartialité / Access to the impartiality commitment
                </a>
                <?php endif; ?>
@@ -191,9 +190,9 @@ $libelleEntite = $typeProposition === Proposition::ROUTE_PARAM_PROPOSITION_THESE
        </div>
        <div class="card-body">
            <?php if ($engagement !== null) : ?>

                <?php if ($avis !== null) : ?>
                    <p>Vous avez rendu votre avis de soutenance pour la thèse de <?php echo $these->getApprenant()->getIndividu(); ?>.</p>

                    <div>
                        <div class="col-md-5">
                            <div class="card">
@@ -204,15 +203,12 @@ $libelleEntite = $typeProposition === Proposition::ROUTE_PARAM_PROPOSITION_THESE
                                    <ul>
                                        <li>Rendu le <?php echo $avis->getValidation()->getHistoModification()->format(Constants::DATETIME_FORMAT); ?> par <?php echo $avis->getValidation()->getIndividu(); ?></li>
                                    </ul>

                                    <dl>
                                        <?php if ($avis->getAvis() !== 'Favorable') : ?>
                                            <dt> Motif de refus </dt>
                                            <dd> <?php echo $avis->getMotif(); ?> </dd>
                                        <?php endif; ?>
                                    </dl>

<!--                            <a href=" --><?php //echo $this->urlFichierThese->telechargerFichierThese($these, $avis->getFichier()); ?><!--" >-->
                                    <a
                                        <?php /** @see TELECHARGEMENT FICHIER */ ?>
                                        href=" <?php echo $telecharger; ?>" >
@@ -220,7 +216,7 @@ $libelleEntite = $typeProposition === Proposition::ROUTE_PARAM_PROPOSITION_THESE
                                    </a>
                                </div>
                            </div>

                            <?php if ($canAnnuler) : ?>
                                <a
                                    <?php /** @see \Soutenance\Controller\AvisMembreController::annulerAction() */ ?>
                                    href="<?php echo $this->url("soutenance_{$typeProposition}/avis-soutenance-membre/annuler", ['id' => $these->getId(), 'rapporteur' => $membre->getId()], [] , true); ?>"
@@ -232,10 +228,12 @@ $libelleEntite = $typeProposition === Proposition::ROUTE_PARAM_PROPOSITION_THESE
                                    <span class="icon icon-delete"></span>
                                    Annuler l'avis de soutenance
                                </a>
                            <?php endif; ?>
                        </div>
                    </div>
            </div>

                <?php else : ?>

                    <p class="lead">
                        Afin de valider la soutenance de thèse de <?php echo $these->getApprenant()->getIndividu(); ?>, vous devez rendre votre
                        avis de soutenance et votre pré-rapport de soutenance.
@@ -244,7 +242,7 @@ $libelleEntite = $typeProposition === Proposition::ROUTE_PARAM_PROPOSITION_THESE
                        <span class="icon icon-attention"></span>
                        Attention, la date limite de rendu des pré-rapports est le <strong><?php echo $proposition->getRenduRapport()->format('d/m/Y'); ?></strong>.
                    </div>
            <?php if ($canAnnuler) : ?>
                    <?php if ($canAvis) : ?>
                        <div>
                            <a
                                <?php /** @see \Soutenance\Controller\AvisMembreController::indexAction() */ ?>
@@ -258,9 +256,13 @@ $libelleEntite = $typeProposition === Proposition::ROUTE_PARAM_PROPOSITION_THESE
                    <?php endif; ?>

                <?php endif; ?>

            <?php else : ?>

                <p class="lead">Pour pouvoir rendre votre avis de soutenance, vous devez avoir signé l'engagement d'impartialité.</p>

            <?php endif; ?>
        </div>
    </div>

<?php endif; ?>
 No newline at end of file