mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
feat: clarification contact étudiant + déplacer Contact visible dans Informations du TFE
- Label : « Contact visible (optionnel) », placeholder : mail/site/insta/etc. - Hint : demander l'URL complète, le système raccourcit à l'affichage - Affichage public (tfe.php) : extraction d'identifiant depuis l'URL - Déplacement de contact_visible du Backoffice vers le fieldset Informations du TFE - Renommage « Identité » → « Informations du TFE » dans le récapitulatif admin
This commit is contained in:
@@ -58,14 +58,15 @@ $adminMode = $adminMode ?? false;
|
||||
$hint = 'Séparez les auteur·ices par des virgules.';
|
||||
include APP_ROOT . '/templates/partials/form/text-field.php';
|
||||
?>
|
||||
<?php if (!$adminMode): ?>
|
||||
<?php
|
||||
$name = 'mail'; $label = 'Contact visible (optionnel) [mail/site/insta/etc.] :'; $value = $oldFn('mail');
|
||||
$name = $adminMode ? 'contact_visible' : 'mail';
|
||||
$label = 'Contact visible (optionnel) :';
|
||||
$value = $oldFn($adminMode ? 'contact_visible' : 'mail');
|
||||
$attrs = ['autocomplete' => 'email'];
|
||||
$hint = 'Un seul contact. Indiquez l\'URL complète pour un site (https://…), l\'adresse mail, le nom d\'utilisateur avec @ pour Instagram (@pseudo), ou l\'adresse complète pour Mastodon (@pseudo@instance). Ce contact sera visible publiquement sur la fiche du TFE.';
|
||||
$placeholder = 'mail/site/insta/etc.';
|
||||
$hint = 'Un seul contact. Collez l\'URL complète du site ou du profil (Instagram, Mastodon, site perso…) ou l\'adresse mail. Le lien sera automatiquement raccourci à l\'affichage (ex: https://instagram.com/pseudo → @pseudo, https://www.erg.be → erg.be).';
|
||||
include APP_ROOT . '/templates/partials/form/text-field.php';
|
||||
?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div>
|
||||
<label for="synopsis">Synopsis :<?= $adminMode ? '' : ' <span class="asterisk">*</span>' ?></label>
|
||||
|
||||
@@ -479,16 +479,7 @@ if ($filesMode === 'add'): ?>
|
||||
<small>Case logistique : cocher si un exemplaire physique est disponible à l'ERG.</small>
|
||||
</div>
|
||||
|
||||
<!-- 7. Contact visible (public) -->
|
||||
<div class="admin-form-group">
|
||||
<label for="contact_visible">Contact visible :</label>
|
||||
<input type="text" id="contact_visible" name="contact_visible"
|
||||
value="<?= htmlspecialchars($currentContactVisible ?? $formData['contact_visible'] ?? '') ?>"
|
||||
placeholder="email, URL, @pseudo...">
|
||||
<small>Contact affiché publiquement sur la page du TFE (email, site web, réseau social…). Laisser vide pour ne rien afficher.</small>
|
||||
</div>
|
||||
|
||||
<!-- 8. Contact interne (privé) -->
|
||||
<!-- 7. Contact interne (privé) -->
|
||||
<div class="admin-form-group">
|
||||
<label for="contact_interne">Contact interne (privé) :</label>
|
||||
<input type="email" id="contact_interne" name="contact_interne"
|
||||
|
||||
Reference in New Issue
Block a user