MSIN-4553 — Update identity display in details section to always show name and bib number if present. Adjust styles for improved layout. Increment version code to 4.72.953 to reflect these changes.

This commit is contained in:
2026-08-03 15:03:13 -04:00
parent 8a11a1b55f
commit d910def81b
3 changed files with 40 additions and 14 deletions

View File

@ -4960,6 +4960,23 @@ button.ms1-ui-chooser-item-side:hover{
letter-spacing:.02em;
}
/* MSIN-4553 — identité toujours dans le corps Détails (sous la bande titre) */
.inscr-gestion-fiche-identity{
display:flex;
flex-wrap:wrap;
align-items:center;
gap:10px;
padding:12px 12px 10px;
border-bottom:1px solid #dee2e6;
background:#f8fbff;
}
.inscr-gestion-fiche-identity__name{
font-size:1.35rem;
}
.inscr-gestion-fiche-section--details .inscr-gestion-fiche-identity + .inscr-gestion-kv-list{
padding-top:4px;
}
.inscr-gestion-btn-chronotrack{
white-space:nowrap;
}

View File

@ -2507,19 +2507,11 @@ function fxInscrGestionRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq,
echo '>';
fxInscrGestionRenderNavBack($strBackUrl, fxInscrGestionResolveBackLabel($arrReq, $strLangue));
echo '<div class="inscr-gestion-fiche-head">';
echo '<h1 class="inscr-gestion-page-title">' . fxInscrGestionEsc(fxUnescape($arrRow['par_nom']) . ', ' . fxUnescape($arrRow['par_prenom'])) . '</h1>';
// MSIN-4553 — pastille dossard à côté du nom (entête fiche).
// MSIN-4553 — nom (+ plaque si dossard) dans la bande Détails ; actions seules en tête.
$strNameHead = fxUnescape($arrRow['par_nom']) . ', ' . fxUnescape($arrRow['par_prenom']);
$strBibHead = trim((string)fxInscrGestionBibDisplay($arrRow));
if ($strBibHead !== '') {
$strBibAria = fxInscrGestionT('inscr_gestion_col_dossard') . ' ' . $strBibHead;
echo '<span class="inscr-gestion-fiche-bib" title="' . fxInscrGestionEsc($strBibAria) . '"'
. ' aria-label="' . fxInscrGestionEsc($strBibAria) . '">';
echo '<span class="inscr-gestion-fiche-bib__tag" aria-hidden="true">'
. fxInscrGestionEsc(fxInscrGestionT('inscr_gestion_col_dossard')) . '</span>';
echo '<span class="inscr-gestion-fiche-bib__num">' . fxInscrGestionEsc($strBibHead) . '</span>';
echo '</span>';
}
ob_start();
// MSIN-4328 — lien direct ChronoTrack (superadmin + entry_id connu)
if (!empty($_SESSION['usa_id'])) {
$strCtEntryId = trim((string)($arrRow['ct_entry_id'] ?? ''));
@ -2554,7 +2546,10 @@ function fxInscrGestionRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq,
. fxInscrGestionEsc(fxInscrGestionT('inscr_gestion_btn_dossard_print'))
. '</a>';
}
echo '</div>';
$strFicheHeadActions = trim(ob_get_clean());
if ($strFicheHeadActions !== '') {
echo '<div class="inscr-gestion-fiche-head">' . $strFicheHeadActions . '</div>';
}
$strDetailsType = $blnEquipe && fxIsParEquipe($arrRow['pec_id_original'], $arrRow['epr_id'])
? fxInscrGestionT('promoteur_bib_show_teamates')
@ -2566,6 +2561,20 @@ function fxInscrGestionRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq,
'fa-info-circle',
($blnForceSectionsOpen || !$blnFromQr)
);
// MSIN-4553 — toujours : nom dans la bande Détails ; plaque si numéro présent.
echo '<div class="inscr-gestion-fiche-identity">';
echo '<h1 class="inscr-gestion-page-title inscr-gestion-fiche-identity__name">'
. fxInscrGestionEsc($strNameHead) . '</h1>';
if ($strBibHead !== '') {
$strBibAria = fxInscrGestionT('inscr_gestion_col_dossard') . ' ' . $strBibHead;
echo '<span class="inscr-gestion-fiche-bib" title="' . fxInscrGestionEsc($strBibAria) . '"'
. ' aria-label="' . fxInscrGestionEsc($strBibAria) . '">';
echo '<span class="inscr-gestion-fiche-bib__tag" aria-hidden="true">'
. fxInscrGestionEsc(fxInscrGestionT('inscr_gestion_col_dossard')) . '</span>';
echo '<span class="inscr-gestion-fiche-bib__num">' . fxInscrGestionEsc($strBibHead) . '</span>';
echo '</span>';
}
echo '</div>';
fxInscrGestionRenderKvListOpen(true);
fxInscrGestionRenderKvRow(fxInscrGestionT('inscr_gestion_epreuve'), fxInscrGestionEpreuveLabel($arrRow['epr_id'], $strLangue));
fxInscrGestionRenderKvRow(fxInscrGestionT('inscr_gestion_type'), $strDetailsType);

View File

@ -7,7 +7,7 @@
* Constantes *
*
**************/
define('_VERSION_CODE', '4.72.952'); // MSIN-4553 — revert identité dans Détails ; plaque en tête
define('_VERSION_CODE', '4.72.953'); // MSIN-4553 — nom toujours dans bande Détails (+ plaque si dossard)
define('_DATE_CODE', '2026-08-03');
//MSIN-4290
define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');