fix(pos,admin): posicionar boton Salir arriba a la derecha con logout directo en POS y asegurar filtro de rechazados con estilos forzados y rutas correctas
This commit is contained in:
+47
-22
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>SiboPay POS - Terminal de Mostrador y Despacho</title>
|
||||
<link rel="icon" type="image/png" href="/img/sibopay-emblem.png">
|
||||
<link rel="stylesheet" href="/css/styles.css?v=10.5">
|
||||
<link rel="stylesheet" href="/css/styles.css?v=10.6">
|
||||
<style>
|
||||
/* Estilos específicos de terminal de alta velocidad */
|
||||
.student-badge-scanned {
|
||||
@@ -39,6 +39,20 @@
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function posLogout() {
|
||||
try {
|
||||
localStorage.removeItem('sibopay_token');
|
||||
localStorage.removeItem('sibopay_user');
|
||||
localStorage.removeItem('recreopay_token');
|
||||
localStorage.removeItem('recreopay_user');
|
||||
sessionStorage.clear();
|
||||
} catch (e) {}
|
||||
window.location.href = '/index.html?logout=true';
|
||||
}
|
||||
window.posLogout = posLogout;
|
||||
</script>
|
||||
</head>
|
||||
<body class="pos-mobile-view-catalog" style="background: #f8fafc; color: #0f172a;">
|
||||
|
||||
<!-- BANNER DE ADVERTENCIA HTTPS PARA TERMINALES REMOTAS -->
|
||||
@@ -58,38 +72,49 @@
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline-block; vertical-align:middle; margin-right:4px;"><rect width="20" height="14" x="2" y="5" rx="2"/><line x1="2" x2="22" y1="10" y2="10"/></svg> Caja / Cobro QR
|
||||
<span class="pos-mobile-nav-badge" id="mobileCartBadge" style="display: none;">0</span>
|
||||
</button>
|
||||
<button type="button" onclick="posLogout()" class="pos-mobile-nav-btn" style="flex: 0 0 auto; padding: 10px 14px; background: #fef2f2; border: 1.5px solid #fecaca; color: #dc2626; font-weight: 800; border-radius: 10px; cursor: pointer;" title="Cerrar sesión de la terminal">
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg>
|
||||
<span>Salir</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="pos-layout">
|
||||
<!-- PANEL IZQUIERDO: CATÁLOGO TÁCTIL Y COLA DE PRE-ÓRDENES -->
|
||||
<div class="pos-catalog-pane">
|
||||
<div class="pos-header-card">
|
||||
<div style="display: flex; align-items: center; gap: 10px;">
|
||||
<img src="/img/sibopay-emblem.png" alt="SiboPay" style="width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3));">
|
||||
<div>
|
||||
<h1 style="font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0;">SiboPay <span style="color: #0284c7;">Terminal Soda</span></h1>
|
||||
<span style="font-size: 0.76rem; color: #64748b;">Soda Escolar • Ventana de Atención Rápida</span>
|
||||
<!-- MARCA Y BADGES DE CONEXIÓN -->
|
||||
<div style="display: flex; align-items: center; gap: 12px; flex-wrap: wrap;">
|
||||
<div style="display: flex; align-items: center; gap: 10px;">
|
||||
<img src="/img/sibopay-emblem.png" alt="SiboPay" style="width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3));">
|
||||
<div>
|
||||
<h1 style="font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0;">SiboPay <span style="color: #0284c7;">Terminal Soda</span></h1>
|
||||
<span style="font-size: 0.76rem; color: #64748b;">Soda Escolar • Ventana de Atención Rápida</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; align-items: center; gap: 6px; flex-wrap: wrap;">
|
||||
<span id="pistolaStatusBadge" class="saas-status-badge" style="background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; font-weight: 700;" title="Pistola lectora USB/Bluetooth lista para escanear en cualquier momento">
|
||||
<span class="saas-dot" style="background: #0284c7;"></span>
|
||||
Pistola QR Conectada
|
||||
</span>
|
||||
<span class="saas-status-badge saas-status-active" title="Conexión en tiempo real activa">
|
||||
<span class="saas-dot"></span>
|
||||
En Línea (SSE)
|
||||
</span>
|
||||
<button id="btnPosNotificationToggle" onclick="enablePushNotificationsPrompt()" class="btn-saas btn-saas-outline" style="height: 32px; font-size: 0.76rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: #0284c7; border-color: #bae6fd;" title="Activar notificaciones de recargas en tiempo real">
|
||||
<span>🔔</span> <span id="lblPosNotificationStatus">Notificaciones</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; align-items: center; gap: 8px; flex-wrap: wrap;">
|
||||
<span id="pistolaStatusBadge" class="saas-status-badge" style="background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; font-weight: 700;" title="Pistola lectora USB/Bluetooth lista para escanear en cualquier momento">
|
||||
<span class="saas-dot" style="background: #0284c7;"></span>
|
||||
Pistola QR Conectada
|
||||
</span>
|
||||
<span class="saas-status-badge saas-status-active" title="Conexión en tiempo real activa">
|
||||
<span class="saas-dot"></span>
|
||||
En Línea (SSE)
|
||||
</span>
|
||||
<button id="btnPosNotificationToggle" onclick="enablePushNotificationsPrompt()" class="btn-saas btn-saas-outline" style="height: 30px; font-size: 0.76rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: #0284c7; border-color: #bae6fd;" title="Activar notificaciones de recargas en tiempo real">
|
||||
<span>🔔</span> <span id="lblPosNotificationStatus">Notificaciones</span>
|
||||
</button>
|
||||
<a href="/index.html?tab=admin" class="btn-saas btn-saas-outline" style="height: 30px; font-size: 0.76rem; display: inline-flex; align-items: center; gap: 5px; font-weight: 700;" title="Ir al Panel de Administración">
|
||||
<!-- ARRIBA A LA DERECHA: ADMIN Y SALIR -->
|
||||
<div style="display: flex; align-items: center; gap: 8px; margin-left: auto;">
|
||||
<a href="/index.html?tab=admin" class="btn-saas btn-saas-outline" style="height: 32px; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 5px; font-weight: 700;" title="Ir al Panel de Administración">
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
|
||||
<span>Admin</span>
|
||||
</a>
|
||||
<button type="button" onclick="posLogout()" class="btn-saas btn-saas-danger-subtle" style="height: 30px; font-size: 0.76rem; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; cursor: pointer; color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 0 10px;" title="Cerrar sesión de la terminal">
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg>
|
||||
<button type="button" onclick="posLogout()" class="btn-saas" style="height: 32px; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; cursor: pointer; color: #dc2626; background: #fef2f2; border: 1.5px solid #fecaca; border-radius: 9px; padding: 0 14px; box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);" title="Cerrar sesión de la terminal">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg>
|
||||
<span>Salir</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -460,6 +485,6 @@
|
||||
<script src="/js/sounds.js?v=8.6"></script>
|
||||
<script src="/js/jsQR.js"></script>
|
||||
<script src="/js/food-icons.js?v=1.1"></script>
|
||||
<script src="/js/pos.js?v=10.1"></script>
|
||||
<script src="/js/pos.js?v=10.2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user