From d9adfbae091008361049e1557cb5ae31022287a6 Mon Sep 17 00:00:00 2001 From: Soporte ZH Consultores Date: Thu, 4 Jun 2026 21:25:47 -0500 Subject: [PATCH] =?UTF-8?q?ui(home):=20horas=20y=20admin=20como=20m=C3=B3d?= =?UTF-8?q?ulos;=20quitar=20Directorio=20de=20Clientes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Apps.catalog() ahora recibe isSocio y emite "Reporte de Horas" (todos) y "Panel de Control" (solo socios/admin) - Eliminado el placeholder "Directorio de Clientes" - Removidos los iconos de reloj y engranaje del header en home, tramites, escrituras, calendario, horas y admin (la navegación ahora pasa por las tarjetas del portal) - Iconos clock y gear agregados a la función icon() del home --- public/index.php | 12 +++--------- src/Apps.php | 27 +++++++++++++++++++-------- views/admin.html | 3 --- views/calendario.html | 14 -------------- views/escrituras.html | 13 ------------- views/horas.html | 10 ---------- views/tramites.html | 13 ------------- 7 files changed, 22 insertions(+), 70 deletions(-) diff --git a/public/index.php b/public/index.php index ccc19fd..385b5a1 100644 --- a/public/index.php +++ b/public/index.php @@ -6,7 +6,7 @@ require_once __DIR__ . '/../src/Apps.php'; $authed = Auth::isAuthenticated(); $user = $authed ? Auth::user() : ['email' => '', 'name' => '']; -$apps = $authed ? Apps::catalog() : []; +$apps = $authed ? Apps::catalog(Auth::isSocio()) : []; /** * Devuelve los eventos del día agrupados: @@ -122,6 +122,8 @@ function icon(string $name): string { 'briefcase' => '', 'calendar' => '', 'users' => '', + 'clock' => '', + 'gear' => '', ]; return $svgs[$name] ?? $svgs['document']; } @@ -322,14 +324,6 @@ a{color:inherit;text-decoration:none;}
- - - - - - - -
- - - Cerrar sesión
diff --git a/views/calendario.html b/views/calendario.html index 2240d97..414d655 100644 --- a/views/calendario.html +++ b/views/calendario.html @@ -309,12 +309,6 @@ footer.legend .pill { display:inline-block; padding:2px 8px; border-radius:20px;
?
…
- - - - Cerrar sesión @@ -474,14 +468,6 @@ let search = ''; let selected = null; let authUser = { email:'', name:'' }; -// Gear icon solo visible para socios (window.DONNA inyectado por Bootstrap) -if (window.DONNA && window.DONNA.isSocio) { - document.addEventListener('DOMContentLoaded', () => { - const g = document.getElementById('btn-gear'); - if (g) g.style.display = 'inline-flex'; - }); -} - function $(id){ return document.getElementById(id); } function esc(s){ return (s==null?'':String(s)).replace(/&/g,'&').replace(/"/g,'"').replace(//g,'>'); } function stripTime(d){ const o=new Date(d); o.setHours(0,0,0,0); return o; } diff --git a/views/escrituras.html b/views/escrituras.html index 70e80cc..0736f57 100644 --- a/views/escrituras.html +++ b/views/escrituras.html @@ -469,12 +469,6 @@ tr.editing-row td textarea.editable {
?
Cargando… - - - - @@ -617,13 +611,6 @@ tr.editing-row td textarea.editable {