mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 01:53:03 +02:00
feature: Lien BAIU + thesis ID in tfe.php
This commit is contained in:
@@ -543,8 +543,11 @@ class ThesisCreateController
|
||||
throw new Exception('La note du jury doit être comprise entre 0 et 20.');
|
||||
}
|
||||
}
|
||||
$exemplaireBaiu = !empty($post['exemplaire_baiu']);
|
||||
$exemplaireErg = !empty($post['exemplaire_erg']);
|
||||
// Student submissions: the BAIU/ERG exemplaire checkboxes are not rendered
|
||||
// in the share form, so default both to true — replicating the admin
|
||||
// add-form default (app/public/admin/add.php).
|
||||
$exemplaireBaiu = !empty($post['exemplaire_baiu']) || !$adminMode;
|
||||
$exemplaireErg = !empty($post['exemplaire_erg']) || !$adminMode;
|
||||
$cc2r = !empty($post['cc2r']);
|
||||
|
||||
// Duration: separate pages (int) and time (h/m → total minutes)
|
||||
|
||||
@@ -249,13 +249,20 @@
|
||||
$_baiuLabel = parse_url($data["baiu_link"], PHP_URL_HOST) ?: preg_replace("#^https?://(www\\.)?#i", "", rtrim($data["baiu_link"], "/"));
|
||||
?>
|
||||
<p class="tfe-meta-item">
|
||||
<span class="tfe-meta-label">Lien :</span>
|
||||
<span class="tfe-meta-label">Lien BAIU :</span>
|
||||
<a href="<?= $_baiuHref ?>" target="_blank" rel="noopener">
|
||||
<?= htmlspecialchars($_baiuLabel) ?>
|
||||
<span class="sr-only">(ouvre dans un nouvel onglet)</span>
|
||||
</a>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($data["identifier"])): ?>
|
||||
<p class="tfe-meta-item">
|
||||
<span class="tfe-meta-label">ID :</span>
|
||||
<?= htmlspecialchars($data["identifier"]) ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($data["context_note"])): ?>
|
||||
|
||||
Reference in New Issue
Block a user