Enhance mobile registration interface with new editable fields and status display; update version code

This commit introduces new CSS styles for the mobile registration interface, including editable fields and a status display section. The PHP code is updated to render these new elements, improving user interaction and information clarity. Additionally, the version code is incremented to 4.72.672 to reflect these enhancements, further optimizing the mobile user experience.
This commit is contained in:
2026-06-18 16:16:14 -04:00
parent 146f692a46
commit c0b6f0c696
4 changed files with 81 additions and 17 deletions

View File

@ -2550,6 +2550,51 @@ a.ms1-trad-link.btn-aide-trad{
font-size:15px;
}
.inscr-mobile-fiche-section--editable{
padding:0;
overflow:hidden;
}
.inscr-mobile-fiche-section--editable > .inscr-mobile-fiche-section__title{
padding:12px 12px 0;
margin-bottom:0;
}
.inscr-mobile-field-block{
padding:12px;
border-top:1px solid #eee;
}
.inscr-mobile-field-block__label{
font-size:13px;
font-weight:700;
color:#495057;
margin-bottom:8px;
}
.inscr-mobile-order-row{
display:flex;
flex-wrap:wrap;
align-items:center;
gap:8px;
}
.inscr-mobile-statut-placeholder{
font-size:13px;
}
.inscr-mobile-fiche-section--buttons{
padding:12px;
}
.inscr-mobile-fiche-section--buttons .inscr-mobile-actions .btn{
margin-bottom:8px;
}
.inscr-mobile-fiche-section--buttons .inscr-mobile-actions .btn:last-child{
margin-bottom:0;
}
.inscr-mobile-fiche-section{
border:1px solid #dee2e6;
border-radius:6px;

View File

@ -485,11 +485,18 @@ function fxInscrMobileRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq, $
echo '<div class="inscr-mobile-topbar__sub">' . fxInscrMobileEsc(fxInscrMobileEpreuveLabel($arrRow['epr_id'], $strLangue)) . '</div>';
echo '</div></div>';
echo '<div class="inscr-mobile-fiche-section">';
echo '<div class="inscr-mobile-fiche-section inscr-mobile-fiche-section--info">';
echo '<h2 class="inscr-mobile-fiche-section__title">' . fxInscrMobileEsc(fxInscrMobileT('inscr_mobile_section_info')) . '</h2>';
echo '<dl class="inscr-mobile-dl">';
echo '<dt>' . fxInscrMobileEsc(fxInscrMobileT('rech_no_commande')) . '</dt><dd>';
echo '<a class="btn btn-primary btn-sm rounded-pill" href="' . $vDomaine . '/facture.php?no_panier=' . rawurlencode($arrRow['no_panier']) . '&amp;lang=' . $strLangue . '" target="_blank">' . fxInscrMobileEsc($arrRow['no_commande']) . '</a></dd>';
echo '<div class="inscr-mobile-order-row">';
echo '<a class="btn btn-primary btn-sm rounded-pill" href="' . $vDomaine . '/facture.php?no_panier=' . rawurlencode($arrRow['no_panier']) . '&amp;lang=' . $strLangue . '" target="_blank">' . fxInscrMobileEsc($arrRow['no_commande']) . '</a>';
$strRenvoi = ($strLangue === 'fr') ? 'RENVOI' : 'RESEND';
echo '<button class="btn btn-outline-primary btn-sm rounded-0 link_confirmation" type="button"'
. ' data-no_panier="' . fxInscrMobileEsc($arrRow['no_panier']) . '"'
. ' data-no_commande="' . fxInscrMobileEsc($arrRow['no_commande']) . '"'
. ' data-lng="' . $strLangue . '">' . fxInscrMobileEsc($strRenvoi) . '</button>';
echo '</div></dd>';
echo '<dt>' . fxInscrMobileEsc(fxInscrMobileT('inscr_mobile_details')) . '</dt><dd>';
echo fxInscrMobileEsc($blnEquipe && fxIsParEquipe($arrRow['pec_id_original'], $arrRow['epr_id'])
? fxInscrMobileT('promoteur_bib_show_teamates') : fxInscrMobileT('epreuve_individuelle'));
@ -497,8 +504,11 @@ function fxInscrMobileRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq, $
echo '<dt>' . fxInscrMobileEsc(fxInscrMobileT('inscr_mobile_modified')) . '</dt><dd>' . fxCheckMAJ($arrRow['pec_id_original'], $intParId, $strLangue) . '</dd>';
echo '</dl></div>';
echo '<div class="inscr-mobile-fiche-section">';
echo '<h2 class="inscr-mobile-fiche-section__title">' . fxInscrMobileEsc(fxInscrMobileT('promoteur_bib_number')) . '</h2>';
echo '<div class="inscr-mobile-fiche-section inscr-mobile-fiche-section--editable">';
echo '<h2 class="inscr-mobile-fiche-section__title">' . fxInscrMobileEsc(fxInscrMobileT('inscr_mobile_section_editable')) . '</h2>';
echo '<div class="inscr-mobile-field-block" data-inscr-field="bib">';
echo '<div class="inscr-mobile-field-block__label">' . fxInscrMobileEsc(fxInscrMobileT('promoteur_bib_number')) . '</div>';
echo '<div class="inscr-mobile-bib-row">';
echo '<input class="form-control rounded-0" type="text" id="' . $strBibInputId . $intParId . '" value="' . fxInscrMobileEsc($strBib) . '">';
echo '<button class="btn btn-primary rounded-0 btn_bib" type="button" data-action="' . $strBibAction . '"'
@ -508,8 +518,8 @@ function fxInscrMobileRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq, $
. ' data-pec_id="' . (int)$arrRow['pec_id_original'] . '">OK</button>';
echo '</div></div>';
echo '<div class="inscr-mobile-fiche-section">';
echo '<h2 class="inscr-mobile-fiche-section__title">' . fxInscrMobileEsc(fxInscrMobileT('promoteur_bib_enregistre')) . '</h2>';
echo '<div class="inscr-mobile-field-block" data-inscr-field="remis">';
echo '<div class="inscr-mobile-field-block__label">' . fxInscrMobileEsc(fxInscrMobileT('promoteur_bib_enregistre')) . '</div>';
echo '<span id="' . (int)$intParId . '">';
echo '<a class="btn btn-sm rounded-0 btn_remis ' . $strRemisClass . '" href="#" data-action="remis"'
. ' data-table="' . rawurlencode(base64_encode('resultats_participants')) . '"'
@ -520,6 +530,13 @@ function fxInscrMobileRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq, $
echo '<div id="par_' . (int)$intParId . '" class="inscr-mobile-muted">' . fxInscrMobileEsc($arrRow['no_bib_remis_par']) . '</div>';
echo '</div>';
echo '<div class="inscr-mobile-field-block inscr-mobile-field-block--statut" data-inscr-field="statut">';
echo '<div class="inscr-mobile-field-block__label">' . fxInscrMobileEsc(fxInscrMobileT('inscr_mobile_statut_label')) . '</div>';
echo '<div class="inscr-mobile-statut-placeholder text-muted">' . fxInscrMobileEsc(fxInscrMobileT('inscr_mobile_statut_soon')) . '</div>';
echo '</div>';
echo '</div>';
$strStyleEdit = $strStyleCancel = '';
$strStyleRetablir = ' d-none';
if ($blnCancelled) {
@ -527,8 +544,7 @@ function fxInscrMobileRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq, $
$strStyleRetablir = '';
}
echo '<div class="inscr-mobile-fiche-section">';
echo '<h2 class="inscr-mobile-fiche-section__title">' . fxInscrMobileEsc(fxInscrMobileT('inscr_mobile_section_actions')) . '</h2>';
echo '<div class="inscr-mobile-fiche-section inscr-mobile-fiche-section--buttons">';
echo '<div class="inscr-mobile-actions">';
echo '<button class="btn btn-primary rounded-0 btn-block btn_edit_event_promo' . $strStyleEdit . '" type="button"'
@ -546,12 +562,6 @@ function fxInscrMobileRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq, $
. ' data-epr_id="' . (int)$arrRow['epr_id'] . '" data-eve_id="' . (int)$arrRow['eve_id'] . '"'
. ' value="' . (int)$arrRow['pec_id_original'] . '">' . fxInscrMobileEsc(fxInscrMobileT('btn_retablirinscriptions')) . '</button>';
$strRenvoi = ($strLangue === 'fr') ? 'RENVOI' : 'RESEND';
echo '<button class="btn btn-outline-primary rounded-0 btn-block link_confirmation" type="button"'
. ' data-no_panier="' . fxInscrMobileEsc($arrRow['no_panier']) . '"'
. ' data-no_commande="' . fxInscrMobileEsc($arrRow['no_commande']) . '"'
. ' data-lng="' . $strLangue . '">' . fxInscrMobileEsc($strRenvoi) . '</button>';
echo '</div></div>';
echo '</div>';
}

View File

@ -7,7 +7,7 @@
* Constantes *
*
**************/
define('_VERSION_CODE', '4.72.671');
define('_VERSION_CODE', '4.72.672');
define('_DATE_CODE', '2026-06-18');
//MSIN-4290
define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');

View File

@ -14,7 +14,10 @@ DELETE FROM info WHERE info_clef IN (
'inscr_mobile_section_info',
'inscr_mobile_details',
'inscr_mobile_modified',
'inscr_mobile_section_actions'
'inscr_mobile_section_actions',
'inscr_mobile_section_editable',
'inscr_mobile_statut_label',
'inscr_mobile_statut_soon'
) AND info_prg = 'compte.php';
INSERT INTO info (info_clef, info_langue, info_texte, info_aide, info_prg, info_description, info_trie, info_actif, info_option1, info_option2, info_option3, info_creation) VALUES
@ -37,4 +40,10 @@ INSERT INTO info (info_clef, info_langue, info_texte, info_aide, info_prg, info_
('inscr_mobile_modified', 'fr', 'Modifiée', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
('inscr_mobile_modified', 'en', 'Modified', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
('inscr_mobile_section_actions', 'fr', 'Actions', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
('inscr_mobile_section_actions', 'en', 'Actions', '', 'compte.php', '', 0, 1, '', '', '', NOW());
('inscr_mobile_section_actions', 'en', 'Actions', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
('inscr_mobile_section_editable', 'fr', 'Champs modifiables', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
('inscr_mobile_section_editable', 'en', 'Editable fields', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
('inscr_mobile_statut_label', 'fr', 'Statut', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
('inscr_mobile_statut_label', 'en', 'Status', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
('inscr_mobile_statut_soon', 'fr', 'Bientôt disponible', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
('inscr_mobile_statut_soon', 'en', 'Coming soon', '', 'compte.php', '', 0, 1, '', '', '', NOW());