From b74d5ac34a82cbb9cc15fc4313a352b3208ac20c Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 22 Jul 2026 14:22:43 -0400 Subject: [PATCH] =?UTF-8?q?MSIN-4475=20=E2=80=94=20Update=20CSS=20for=20ba?= =?UTF-8?q?dge=20auto=20assignment=20to=20ensure=20proper=20display=20with?= =?UTF-8?q?out=20overflow.=20Adjust=20PHP=20functions=20to=20allow=20tempo?= =?UTF-8?q?rary=20unlocking=20for=20promoters=20and=20update=20version=20c?= =?UTF-8?q?ode=20to=204.72.864.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 11 +++++++---- php/inc_fx_bib_production.php | 7 +++++-- php/inc_fx_promoteur.php | 3 +-- php/inc_settings.php | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/css/style.css b/css/style.css index fe18984..aa79046 100644 --- a/css/style.css +++ b/css/style.css @@ -2610,7 +2610,8 @@ ul.ms1-menu-compte li a:hover, ul.ms1-menu-compte li a:active { } .epr-block-assign .bib-container .epr-line{ - min-width:980px; + /* MSIN-4475 — place pour le badge auto en fin de ligne. */ + min-width:1100px; } .epr-line-header{ @@ -3214,6 +3215,7 @@ a.ms1-trad-link.btn-aide-trad{ /* MSIN-4379 / MSIN-4469 — cadenas utilisateur + impression + view/OK/stats. */ /* MSIN-4429 — colonnes Début | Qté | ou | Fin (alignées sur l'en-tête). */ +/* MSIN-4475 — dernière colonne assez large pour le badge « Assignation automatique ». */ .epr-line{ display:grid; grid-template-columns: @@ -3227,7 +3229,7 @@ a.ms1-trad-link.btn-aide-trad{ minmax(72px, 88px) 48px minmax(164px, 180px) - minmax(32px, 44px); + minmax(150px, 170px); gap:8px; align-items:center; width:100%; @@ -3439,11 +3441,12 @@ a.ms1-trad-link.btn-aide-trad{ } .epr-col-batch{ - overflow:hidden; + /* MSIN-4475 — ne plus couper le badge auto (flex-end + overflow masquait « Assignation »). */ + overflow:visible; min-width:0; display:flex; align-items:center; - justify-content:flex-end; + justify-content:flex-start; gap:4px; } diff --git a/php/inc_fx_bib_production.php b/php/inc_fx_bib_production.php index db37a8e..38ad704 100644 --- a/php/inc_fx_bib_production.php +++ b/php/inc_fx_bib_production.php @@ -58,12 +58,15 @@ function fxBibProductionEventIsLocked($intEveId) { return fxBibProductionGetActiveOrder($intEveId) !== null; } -/** MSIN-4469 — Garde-fou temporaire réservé au superadmin pendant le développement. */ +/** + * MSIN-4469 — Déverrouillage temporaire (dev) : même droit que la génération + * (promoteur avec dossards.manage, ou superadmin). + */ function fxBibProductionDevelopmentUnlock($intEveId) { global $objDatabase; $intEveId = (int)$intEveId; - if ($intEveId <= 0 || empty($_SESSION['usa_id'])) { + if ($intEveId <= 0 || !fxBibProductionUserCanManageEvent($intEveId)) { return ['success' => false, 'message' => fxBibMsg('bib_v4_ajax_unauthorized')]; } diff --git a/php/inc_fx_promoteur.php b/php/inc_fx_promoteur.php index 63fe838..1945218 100644 --- a/php/inc_fx_promoteur.php +++ b/php/inc_fx_promoteur.php @@ -5068,7 +5068,7 @@ function renderBibProductionPreview(array $tabEpreuves, $strLangue = 'fr') {

- +

@@ -5082,7 +5082,6 @@ function renderBibProductionPreview(array $tabEpreuves, $strLangue = 'fr') {
- 0) { ?>