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.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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 '<div class="bib-tool-group__rail" aria-hidden="true"><span>'
|
||||
. fxBibEsc(fxBibTexte($strClef, 0)) . '</span></div>';
|
||||
}
|
||||
|
||||
function fxShowBibTool4($str_code, $int_eve_id, $strLangue){
|
||||
global $objDatabase, $vDomaine;
|
||||
|
||||
@ -4612,7 +4601,7 @@ function fxShowBibTool4($str_code, $int_eve_id, $strLangue){
|
||||
?>
|
||||
|
||||
<div class="card-header bib-tool-card-header">
|
||||
<h2 class="bib-tool-card-title"><?php fxBibTexteTrad('bib_v4_page_title', 1); ?></h2>
|
||||
<h2 class="bib-tool-card-title"><?php afficheTexte('promoteur_bib_tool')?></h2>
|
||||
<?php
|
||||
if (function_exists('fxEveAccesPermInspectBadge')) {
|
||||
echo ' ' . fxEveAccesPermInspectBadge('dossards.manage', 'bib');
|
||||
@ -4623,47 +4612,21 @@ function fxShowBibTool4($str_code, $int_eve_id, $strLangue){
|
||||
|
||||
<div id="module-bib" class="epr-wrapper" data-csrf-token="<?php echo fxBibEsc(fxBibCsrfToken()); ?>" data-lang="<?php echo fxBibEsc($strLangue); ?>" data-eve-id="<?php echo (int)$int_eve_id; ?>" data-allow-inter-epr="<?php echo fxBibEventAllowsInterEprDuplicates((int)$int_eve_id) ? '1' : '0'; ?>"<?php echo fxBibModuleJsDataAttrs(); ?><?php echo fxAdminTextEditModeActive() ? ' data-bib-trad="1"' : ''; ?>>
|
||||
|
||||
<?php /* MSIN-4433 — Libellés en marge gauche, panneaux compacts (hauteur minimale). */ ?>
|
||||
<div class="bib-tool-overview">
|
||||
<div class="bib-tool-group">
|
||||
<?php echo fxBibRenderToolGroupRail('bib_v4_zone_config'); ?>
|
||||
<div class="bib-tool-group__main bib-tool-group__main--stack">
|
||||
<?php echo renderBibEventConfigPanel((int)$int_eve_id, $strLangue); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo renderBibEventConfigPanel((int)$int_eve_id, $strLangue); ?>
|
||||
|
||||
<div class="bib-tool-group">
|
||||
<?php echo fxBibRenderToolGroupRail('bib_v4_zone_suivi'); ?>
|
||||
<div class="bib-tool-group__main bib-tool-group__main--stack">
|
||||
<div id="bib-qty-summary-mount">
|
||||
<?php echo renderBibQtySummaryPanelShell((int)$int_eve_id, $strLangue); ?>
|
||||
</div>
|
||||
<div id="bib-anomalies-mount">
|
||||
<?php echo renderBibAnomaliesPanelShell((int)$int_eve_id, $strLangue); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bib-tool-group">
|
||||
<?php echo fxBibRenderToolGroupRail('bib_v4_zone_reports'); ?>
|
||||
<div class="bib-tool-group__main bib-tool-group__main--stack">
|
||||
<div id="bib-dist-print-mount">
|
||||
<?php echo renderBibDistPrintPanelShell((int)$int_eve_id, $strLangue); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bib-tool-group">
|
||||
<?php echo fxBibRenderToolGroupRail('bib_v4_zone_actions'); ?>
|
||||
<div class="bib-tool-group__main">
|
||||
<?php echo renderBibGlobalBatchPanelShell((int)$int_eve_id, $tabEpreuves, $strLangue); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="bib-qty-summary-mount">
|
||||
<?php echo renderBibQtySummaryPanelShell((int)$int_eve_id, $strLangue); ?>
|
||||
</div>
|
||||
|
||||
<div class="bib-tool-group bib-tool-group--epreuves">
|
||||
<?php echo fxBibRenderToolGroupRail('bib_v4_zone_epreuves'); ?>
|
||||
<div class="bib-tool-group__main bib-tool-group__main--epreuves">
|
||||
<div id="bib-anomalies-mount">
|
||||
<?php echo renderBibAnomaliesPanelShell((int)$int_eve_id, $strLangue); ?>
|
||||
</div>
|
||||
|
||||
<div id="bib-dist-print-mount">
|
||||
<?php echo renderBibDistPrintPanelShell((int)$int_eve_id, $strLangue); ?>
|
||||
</div>
|
||||
|
||||
<?php echo renderBibGlobalBatchPanelShell((int)$int_eve_id, $tabEpreuves, $strLangue); ?>
|
||||
|
||||
<?php for($i = 1; $i <= count($tabEpreuves); $i++){ ?>
|
||||
|
||||
@ -4819,9 +4782,6 @@ if ($teamMode <= 0) {
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php echo fxDocRenderModule('bib_v4_assign_doc'); ?>
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
Reference in New Issue
Block a user