Commit 20e55ebc authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Fiche Thèse : mention en cas de thèse supprimée/historisée.

parent 32a4e854
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
------
- Possibilité de créer une thèse à paritr d'un dossier d'admission validé (depuis la page de recherche de dossiers).
- Changement d'apparence (plus sobre) des texte du genre 'Non renseigné'.
- Fiche Thèse : mention en cas de thèse supprimée/historisée.
- [FIX] Import : plantage des imports à partir d'une API (dû à un mésusage de Assert::isInstanceOf() dans unicaen/db-import). 

13.3.0
+11 −1
Changes for module/These/view/these/these/partial/titre.phtml: 11 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 * @var These $these
 * @var bool $useTitreThese
 * @var int $length
 * @var boolean $description
 * @var bool $description
 */

if (! isset($length)) $length = 80;
@@ -41,3 +41,13 @@ $class = $these->estConfidentielle() ? 'text-danger' : '';
       role="button"><span class="fas fa-list-alt"></span>
    </a>
<?php endif; ?>

<?php if ($dateDestruction = $these->getHistoDestruction()): ?>
    <?php $content = sprintf('<span class="text-danger">Thèse supprimée (historisée) le %s</span>', $dateDestruction->format(\Application\Constants::DATE_FORMAT)) ?>
    <span data-bs-toggle="popover"
          data-bs-content="<?php echo htmlspecialchars($content) ?>"
          data-bs-trigger="hover"
          data-bs-html="true"
          data-bs-placement="right"><span class="badge bg-danger">SUPPRIMÉE</span>
        </span>
<?php endif ?>