MSIN-4452 — Update badge styles in promoteur hub for improved visual alignment and reduced alert intensity. Adjust CSS properties for danger, warning, info, and soft badges. Increment version code to 4.72.835.
This commit is contained in:
@ -5250,10 +5250,11 @@ button.inscr-gestion-list-remis:hover{
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.phub-badge-danger { background: #fde2e1; color: #b3261e; }
|
||||
.phub-badge-warn { background: #fdecc8; color: #9a6700; }
|
||||
.phub-badge-info { background: #dceafd; color: #1f5fb3; }
|
||||
.phub-badge-soft { background: #eceff3; color: #4a5568; }
|
||||
/* MSIN-4452 — pastilles alignées sur la bande flash (peach / navy), sans ton alerte agressif */
|
||||
.phub-badge-danger { background: #f8e4df; color: #8f3d32; }
|
||||
.phub-badge-warn { background: #fdeede; color: #8a5a2b; border: 1px solid #f3d6b8; }
|
||||
.phub-badge-info { background: #e8f0fa; color: #1f3b63; }
|
||||
.phub-badge-soft { background: #f3f1ee; color: #5a6570; }
|
||||
|
||||
/* --- Grille de tuiles par epreuve --- */
|
||||
.promoteur-hub-epreuves-grid {
|
||||
|
||||
@ -1267,28 +1267,28 @@ function fxPromoteurHubRenderFlash($arrStats, $strLangue = 'fr')
|
||||
|
||||
$html .= '</div>'; // .promoteur-hub-flash
|
||||
|
||||
// ---- Badges d'alerte ----
|
||||
// ---- Badges d'alerte (MSIN-4452 : texte seul, sans icône) ----
|
||||
$arrBadges = array();
|
||||
if (intval($arrFlash['nb_completes']) > 0) {
|
||||
$arrBadges[] = array('cls' => 'phub-badge-danger', 'icon' => 'fa-ban',
|
||||
$arrBadges[] = array('cls' => 'phub-badge-danger',
|
||||
'txt' => intval($arrFlash['nb_completes']) . ' ' . fxPromoteurHubTexte('promoteur_hub_badge_completes', 0));
|
||||
}
|
||||
if (intval($arrFlash['nb_presque']) > 0) {
|
||||
$arrBadges[] = array('cls' => 'phub-badge-warn', 'icon' => 'fa-exclamation-triangle',
|
||||
$arrBadges[] = array('cls' => 'phub-badge-warn',
|
||||
'txt' => intval($arrFlash['nb_presque']) . ' ' . fxPromoteurHubTexte('promoteur_hub_badge_presque', 0));
|
||||
}
|
||||
if (intval($arrFlash['total_attente']) > 0) {
|
||||
$arrBadges[] = array('cls' => 'phub-badge-info', 'icon' => 'fa-hourglass-half',
|
||||
$arrBadges[] = array('cls' => 'phub-badge-info',
|
||||
'txt' => intval($arrFlash['total_attente']) . ' ' . fxPromoteurHubTexte('promoteur_hub_badge_attente', 0));
|
||||
}
|
||||
if ($arrFlash['prochaine_date_limite'] !== '') {
|
||||
$arrBadges[] = array('cls' => 'phub-badge-soft', 'icon' => 'fa-clock-o',
|
||||
$arrBadges[] = array('cls' => 'phub-badge-soft',
|
||||
'txt' => fxPromoteurHubTexte('promoteur_hub_badge_limite', 0) . ' ' . fxShowDate($arrFlash['prochaine_date_limite'], $strLangue, 1));
|
||||
}
|
||||
if (!empty($arrBadges)) {
|
||||
$html .= '<div class="promoteur-hub-badges">';
|
||||
foreach ($arrBadges as $arrBadge) {
|
||||
$html .= '<span class="phub-badge ' . $arrBadge['cls'] . '"><i class="fa ' . $arrBadge['icon'] . ' mr-1" aria-hidden="true"></i>'
|
||||
$html .= '<span class="phub-badge ' . $arrBadge['cls'] . '">'
|
||||
. fxPromoteurHubEsc($arrBadge['txt']) . '</span>';
|
||||
}
|
||||
$html .= '</div>';
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
* Constantes *
|
||||
*
|
||||
**************/
|
||||
define('_VERSION_CODE', '4.72.834');
|
||||
define('_VERSION_CODE', '4.72.835');
|
||||
define('_DATE_CODE', '2026-07-16');
|
||||
//MSIN-4290
|
||||
define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');
|
||||
|
||||
Reference in New Issue
Block a user