From 0ea8a48591866a7514d5b15c295188cd0700199d Mon Sep 17 00:00:00 2001 From: stephan Date: Mon, 13 Jul 2026 17:23:25 -0400 Subject: [PATCH] Implement responsive grid layout for the inscription management form, enhancing mobile and tablet views. Update form fields for better structure and accessibility, including multi-status filters and action buttons. Increment version code to 4.72.807 to reflect these changes. --- css/style.css | 72 ++++++++++++++++++++++++++ php/inc_fx_inscriptions_gestion.php | 79 +++++++++++++++++++---------- php/inc_settings.php | 2 +- 3 files changed, 124 insertions(+), 29 deletions(-) diff --git a/css/style.css b/css/style.css index a6b4662..6e8362e 100644 --- a/css/style.css +++ b/css/style.css @@ -3568,6 +3568,78 @@ a.ms1-trad-link.btn-aide-trad{ margin-top:0; } +/* MSIN-4401 — Recherche : 1 col mobile, 2 cols tablette, 3 cols bureau. */ +.inscr-gestion-form-grid{ + display:grid; + grid-template-columns:1fr; + gap:4px 14px; + align-items:start; +} + +.inscr-gestion-form-field{ + min-width:0; +} + +.inscr-gestion-form-field > .inscr-gestion-label:first-child{ + margin-top:0; +} + +.inscr-gestion-form-field--checks{ + display:flex; + flex-direction:column; + gap:2px; + padding-top:4px; +} + +.inscr-gestion-form-field--checks .inscr-gestion-check{ + margin-top:6px; +} + +.inscr-gestion-form-field--actions{ + padding-top:4px; +} + +.inscr-gestion-form-field--actions .inscr-gestion-form-actions{ + margin-top:4px; +} + +@media (min-width:768px){ + .inscr-gestion-form-grid{ + grid-template-columns:1fr 1fr; + } + + .inscr-gestion-form-field--checks, + .inscr-gestion-form-field--actions{ + grid-column:1 / -1; + } + + .inscr-gestion-form-field--checks{ + flex-direction:row; + flex-wrap:wrap; + gap:8px 20px; + align-items:center; + padding-top:8px; + border-top:1px solid #eef2f7; + margin-top:4px; + } + + .inscr-gestion-form-field--checks .inscr-gestion-check{ + margin-top:0; + } +} + +@media (min-width:992px){ + .inscr-gestion-form-grid{ + grid-template-columns:repeat(3, minmax(0, 1fr)); + } + + /* 3 cols égales : prénom/nom/commande puis dossard/épreuve/statut. */ + .inscr-gestion-form-field--bib, + .inscr-gestion-form-field--statut{ + grid-column:auto; + } +} + .inscr-gestion-check{ display:flex; align-items:center; diff --git a/php/inc_fx_inscriptions_gestion.php b/php/inc_fx_inscriptions_gestion.php index d32bf7e..8c5463b 100644 --- a/php/inc_fx_inscriptions_gestion.php +++ b/php/inc_fx_inscriptions_gestion.php @@ -1751,31 +1751,43 @@ function fxInscrGestionRenderList($intEveId, $strLangue, $strBaseUrl, $arrReq) { echo '
'; echo '
'; echo ''; + // MSIN-4401 — Grille responsive (1 col mobile, 2–3 cols bureau) comme la fiche Détails. + echo '
'; - $arrFields = array( - 'rech_prenom' => 'rech_prenom', - 'rech_nom' => 'rech_nom', - 'rech_no_commande' => 'rech_no_commande', - 'rech_nom_equipe' => 'inscr_gestion_rech_bib_equipe', - ); - foreach ($arrFields as $strKey => $strLbl) { - echo ''; - if ($strKey === 'rech_nom_equipe') { - echo '
'; - fxInscrGestionRenderBibScanBlock($strKey, $strLangue); - echo '
'; - echo ''; - echo ''; - echo '
'; - continue; - } - echo ''; - } + echo '
'; + echo ''; + echo ''; + echo '
'; + echo '
'; + echo ''; + echo ''; + echo '
'; + + echo '
'; + echo ''; + echo ''; + echo '
'; + + echo '
'; + echo ''; + echo '
'; + fxInscrGestionRenderBibScanBlock('rech_nom_equipe', $strLangue); + echo '
'; + echo ''; + echo ''; + echo '
'; + + echo '
'; echo ''; echo ''; + echo '
'; + echo '
'; // MSIN-4401 — Filtre multi statut de course (tous si aucune sélection). fxInscrGestionRenderStatutFilter($arrReq, $strLangue); + echo '
'; - echo ''; - echo ''; + echo '
'; + echo ''; + echo ''; + echo '
'; - echo '
'; + echo '
'; + echo '
'; echo '' . fxInscrGestionEsc(fxInscrGestionT('inscr_gestion_reset_search')) . ''; - echo ''; + echo ''; + echo '
'; + echo '
'; echo '
'; diff --git a/php/inc_settings.php b/php/inc_settings.php index 0f8e2b2..9cda618 100644 --- a/php/inc_settings.php +++ b/php/inc_settings.php @@ -7,7 +7,7 @@ * Constantes * * **************/ -define('_VERSION_CODE', '4.72.806'); +define('_VERSION_CODE', '4.72.807'); define('_DATE_CODE', '2026-07-13'); //MSIN-4290 define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');