MSIN-4475 — Update CSS for badge auto assignment to ensure proper display without overflow. Adjust PHP functions to allow temporary unlocking for promoters and update version code to 4.72.864.

This commit is contained in:
2026-07-22 14:22:43 -04:00
parent 26b658acf8
commit b74d5ac34a
4 changed files with 14 additions and 9 deletions

View File

@ -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;
}

View File

@ -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')];
}

View File

@ -5068,7 +5068,7 @@ function renderBibProductionPreview(array $tabEpreuves, $strLangue = 'fr') {
<p class="text-muted small"><?php fxBibTexteTrad('bib_v5_production_excel_generating', 1); ?></p>
<?php } ?>
<?php if (!empty($_SESSION['usa_id'])) { ?>
<?php // MSIN-4469 — Déverrouiller : droit promoteur (dossards.manage), pas seulement superadmin. ?>
<div class="mt-3">
<p class="text-muted small mb-1"><?php fxBibTexteTrad('bib_v5_production_dev_unlock_help', 1); ?></p>
<form method="post" action="<?php echo fxBibEsc($strExcelUrl); ?>">
@ -5082,7 +5082,6 @@ function renderBibProductionPreview(array $tabEpreuves, $strLangue = 'fr') {
</button>
</form>
</div>
<?php } ?>
<?php } elseif ($intRangeTotal > 0) { ?>
<p class="text-muted small"><?php fxBibTexteTrad('bib_v5_production_excel_generate_help', 1); ?></p>
<form method="post" action="<?php echo fxBibEsc($strExcelUrl); ?>" target="_blank"

View File

@ -7,7 +7,7 @@
* Constantes *
*
**************/
define('_VERSION_CODE', '4.72.863'); // MSIN-4445 — assignation libre : toutes épreuves solo
define('_VERSION_CODE', '4.72.864'); // MSIN-4475 — badge auto ligne séquence non coupé
define('_DATE_CODE', '2026-07-22');
//MSIN-4290
define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');