diff --git a/proveedores.html b/proveedores.html index 3fb1986..cfee7d8 100644 --- a/proveedores.html +++ b/proveedores.html @@ -479,7 +479,16 @@ const dbStatusObj = systemStatuses.find(st => String(st.id) === String(dbStatusId)); const isUrgent = svc.is_urgent === true || (raw['Urgente'] && raw['Urgente'].toLowerCase() === 'sí') || (raw['URGENTE'] && raw['URGENTE'].toLowerCase() === 'si'); - const urgentBadge = isUrgent ? `🔥 Urgente` : ''; + // Le he quitado el ml-3 para que use el gap automático + const urgentBadge = isUrgent ? `🔥 Urgente` : ''; + + // 🛑 NUEVO: EXTRAER Y PINTAR LOS ICONOS DE CANDADO Y OJOS + const hasLock = raw.has_lock === true || String(raw.has_lock) === 'true'; + const hasEyes = raw.has_eyes === true || String(raw.has_eyes) === 'true'; + + let alertBadges = ''; + if (hasLock) alertBadges += ``; + if (hasEyes) alertBadges += ``; if (!isArchived) { if (autoStatus.includes('bolsa') || autoStatus === 'in_progress') { @@ -601,9 +610,10 @@
-
+

${name}

${urgentBadge} + ${alertBadges}

${fullAddr}