Commit f09d9682 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Fiche Thèse : modification de l'affichage des missions d'enseignement

parent 18b17e97
Loading
Loading
Loading
Loading
+1 −3
Changes for module/Doctorant/src/Doctorant/View/Helper/partial/missionEnseignement.phtml: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -22,11 +22,9 @@ $canEditThese = $options['canEditThese'] ?? false;
    <?php if ($canMissionGerer && $canEditThese) : ?>
        <a  <?php /**  @see \Doctorant\Controller\MissionEnseignementController::retirerAction() */ ?>
            class="ajax-modal" data-event="modification"
            data-toggle="confirmationx"
            data-message="Êtes-vous sûr·e de vouloir retirer cette mission d'enseignement ?"
            data-bs-toggle="tooltip"
            data-bs-html="true"
            title="Une confirmation avant la suppression vous sera demandée"
            title="Retirer cette mission d'enseignement"
            href="<?php echo $this->url('doctorant/mission-enseignement/retirer', ['mission' => $missionEnseignement->getId(), 'doctorant' => $these->getDoctorant()->getId()], [], true); ?>"
        >
            <span class="icon icon-supprimer"></span>
+6 −5
Changes for module/These/view/these/these/identite.phtml: 6 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -210,22 +210,23 @@ switch ($these->getEtatThese()){
                        <dt class="col-md-3">
                            Mission·s d'enseignement
                        </dt>
                        <dd class="col-md-6">
                            <?php if ($canMissionGerer && $canEditThese) : ?>
                                <a  <?php /**  @see \Doctorant\Controller\MissionEnseignementController::ajouterAction() */ ?>
                                    class="icon icon-plus iconly ajax-modal float-end" data-event="modification"
                                        class="icon icon-ajouter iconly ajax-modal float-end" data-event="modification"
                                        href="<?php echo $this->url('doctorant/mission-enseignement/ajouter', ['doctorant' => $these->getDoctorant()->getId()], [], true); ?>"
                                        title="Ajouter une mission d'enseignement"></a>
                            <?php endif; ?>
                        <dd class="col-md-6">
                            <?php if (empty($missions)) : ?>
                                <span class="badge bg-secondary text-white" style="font-size:unset">
                                    <span class="icon icon-info" style="padding-right: unset"></span>
                                <span class="text-secondary">
                                    <?php echo $this->translate("Aucune mission renseignée") ?>
                                </span>
                            <?php else: ?>
                                <ul>
                                <ul class="p-0">
                                    <?php foreach ($missions as $mission) : ?>
                                        <li>
                                            <?php echo $this->missionEnseignement($mission, $these, ['canMissionGerer' => $canMissionGerer, 'canEditThese' => $canEditThese]); ?>
                                        </li>
                                    <?php endforeach; ?>
                                </ul>
                            <?php endif; ?>