From 1b76f0fece4d05850c358c465ed45f0bbc82e436 Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 8 Jul 2026 12:21:34 -0400 Subject: [PATCH] Refactor bib tool layout and remove unused SQL file, update version code to 4.72.764 This commit streamlines the bib management interface by removing unnecessary CSS styles and PHP functions related to the previous layout. The SQL file for visual zones is deleted as it is no longer needed. The version code is incremented to 4.72.764 to reflect these updates. --- css/style.css | 77 ++------------------------------ php/inc_fx_promoteur.php | 66 ++++++--------------------- php/inc_settings.php | 2 +- sql/MSIN-4433-bib-tool-zones.sql | 50 --------------------- 4 files changed, 17 insertions(+), 178 deletions(-) delete mode 100644 sql/MSIN-4433-bib-tool-zones.sql diff --git a/css/style.css b/css/style.css index 0019e17..e94fd94 100644 --- a/css/style.css +++ b/css/style.css @@ -1064,84 +1064,13 @@ ul.ms1-menu-compte li a:hover, ul.ms1-menu-compte li a:active { line-height:1.45; } -/* MSIN-4433 — Outil dossards : libellés en marge gauche, blocs compacts. */ +/* MSIN-4424 — Blocs repliables en tête du module bib : espacement serré. */ #module-bib.epr-wrapper{ - gap:10px; -} - -.bib-tool-overview{ - display:flex; - flex-direction:column; gap:6px; } -.bib-tool-group{ - display:grid; - grid-template-columns:minmax(56px, 76px) minmax(0, 1fr); - gap:6px 10px; - align-items:start; -} - -.bib-tool-group__rail{ - padding-top:11px; - text-align:right; -} - -.bib-tool-group__rail span{ - display:block; - font-size:10px; - font-weight:700; - line-height:1.25; - letter-spacing:.02em; - text-transform:uppercase; - color:#6c757d; - word-break:break-word; -} - -.bib-tool-group__main--stack{ - display:flex; - flex-direction:column; - gap:6px; - min-width:0; -} - -.bib-tool-group__main--epreuves{ - display:flex; - flex-direction:column; - gap:20px; - min-width:0; -} - -.bib-tool-group--epreuves{ - margin-top:4px; -} - -.bib-tool-group--epreuves .bib-tool-group__rail span{ - font-size:11px; - color:#495057; -} - -.bib-tool-group--epreuves .bib-tool-group__rail{ - padding-top:14px; -} - -.bib-tool-group .bib-global-batch{ - margin:0; -} - -#module-bib > .bib-tool-group--epreuves .epr-row:first-of-type{ - margin-top:0; -} - -@media (max-width: 480px){ - .bib-tool-group{ - grid-template-columns:minmax(48px, 58px) minmax(0, 1fr); - gap:4px 6px; - } - - .bib-tool-group__rail span{ - font-size:9px; - } +#module-bib > .epr-row:first-of-type{ + margin-top:10px; } diff --git a/php/inc_fx_promoteur.php b/php/inc_fx_promoteur.php index bea6000..7fe6b86 100644 --- a/php/inc_fx_promoteur.php +++ b/php/inc_fx_promoteur.php @@ -3356,12 +3356,6 @@ function fxBibStaticFallback($clef) { 'bib_v4_dist_print_empty_epr' => ['fr' => 'Aucun dossard assigné pour cette épreuve.', 'en' => 'No bib assigned for this race.'], 'bib_v4_dist_print_last' => ['fr' => 'Dernière impression : %s — %s', 'en' => 'Last print: %s — %s'], 'bib_v4_dist_print_footer' => ['fr' => 'Imprimé le %s — %s', 'en' => 'Printed on %s — %s'], - 'bib_v4_page_title' => ['fr' => 'Quantités et dossards', 'en' => 'Quantities and bibs'], - 'bib_v4_zone_config' => ['fr' => 'Configuration', 'en' => 'Settings'], - 'bib_v4_zone_suivi' => ['fr' => 'Suivi', 'en' => 'Monitoring'], - 'bib_v4_zone_reports' => ['fr' => 'Rapports', 'en' => 'Reports'], - 'bib_v4_zone_actions' => ['fr' => 'Actions globales', 'en' => 'Global actions'], - 'bib_v4_zone_epreuves' => ['fr' => 'Épreuves', 'en' => 'Races'], ]; return $tab[$clef][$lng] ?? ''; @@ -4595,11 +4589,6 @@ function renderBibGlobalBatchPanel($int_eve_id, $tabEpreuves, $tabBibAssignments return ob_get_clean(); } -function fxBibRenderToolGroupRail($strClef) { - return ''; -} - function fxShowBibTool4($str_code, $int_eve_id, $strLangue){ global $objDatabase, $vDomaine; @@ -4612,7 +4601,7 @@ function fxShowBibTool4($str_code, $int_eve_id, $strLangue){ ?>
-

+

" data-lang="" data-eve-id="" data-allow-inter-epr=""> - -
-
- -
- -
-
+ -
- -
-
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
- -
-
+
+
-
- -
+
+ +
+ +
+ +
+ + @@ -4819,9 +4782,6 @@ if ($teamMode <= 0) { -
-
-
diff --git a/php/inc_settings.php b/php/inc_settings.php index 1f80db1..c7fcf42 100644 --- a/php/inc_settings.php +++ b/php/inc_settings.php @@ -7,7 +7,7 @@ * Constantes * * **************/ -define('_VERSION_CODE', '4.72.763'); +define('_VERSION_CODE', '4.72.764'); define('_DATE_CODE', '2026-07-08'); //MSIN-4290 define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe'); diff --git a/sql/MSIN-4433-bib-tool-zones.sql b/sql/MSIN-4433-bib-tool-zones.sql deleted file mode 100644 index dd42b50..0000000 --- a/sql/MSIN-4433-bib-tool-zones.sql +++ /dev/null @@ -1,50 +0,0 @@ --- MSIN-4433 — Zones visuelles outil dossards v4 (titres de section) --- Idempotent. Exécuter après MSIN-4433-bib-distribution-pdf.sql (optionnel : repli PHP si absent). - -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) -SELECT 'bib_v4_page_title', 'fr', 'Quantités et dossards', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_page_title' AND info_langue = 'fr' 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) -SELECT 'bib_v4_page_title', 'en', 'Quantities and bibs', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_page_title' AND info_langue = 'en' 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) -SELECT 'bib_v4_zone_config', 'fr', 'Configuration', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_config' AND info_langue = 'fr' 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) -SELECT 'bib_v4_zone_config', 'en', 'Settings', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_config' AND info_langue = 'en' 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) -SELECT 'bib_v4_zone_suivi', 'fr', 'Suivi', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_suivi' AND info_langue = 'fr' 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) -SELECT 'bib_v4_zone_suivi', 'en', 'Monitoring', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_suivi' AND info_langue = 'en' 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) -SELECT 'bib_v4_zone_reports', 'fr', 'Rapports', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_reports' AND info_langue = 'fr' 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) -SELECT 'bib_v4_zone_reports', 'en', 'Reports', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_reports' AND info_langue = 'en' 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) -SELECT 'bib_v4_zone_actions', 'fr', 'Actions globales', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_actions' AND info_langue = 'fr' 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) -SELECT 'bib_v4_zone_actions', 'en', 'Global actions', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_actions' AND info_langue = 'en' 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) -SELECT 'bib_v4_zone_epreuves', 'fr', 'Épreuves', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_epreuves' AND info_langue = 'fr' 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) -SELECT 'bib_v4_zone_epreuves', 'en', 'Races', '', 'compte.php', '', 0, 1, '', '', '', NOW() -FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_zone_epreuves' AND info_langue = 'en' AND info_prg = 'compte.php');