From 8049434a6b30beeb0757df3841f74ecec655f964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Tue, 7 Jul 2026 22:31:37 -0600 Subject: [PATCH] =?UTF-8?q?feat(panel):=20quita=20el=20bot=C3=B3n=20"Nuevo?= =?UTF-8?q?=20becario"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El alta manual desde el panel creaba un becario sin teléfono/contraseña (estado 'activo' pero sin credenciales) que no podía iniciar sesión ni checar. El alta real es el auto-registro del becario (celular+contraseña) → aprobación de la supervisora. Se quita el botón del encabezado y del estado vacío, y se ajusta el copy. La edición de becarios existentes (BecarioForm) se conserva. Co-Authored-By: Claude Fable 5 --- frontend/panel.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/panel.html b/frontend/panel.html index c73703b..012afef 100644 --- a/frontend/panel.html +++ b/frontend/panel.html @@ -208,7 +208,6 @@ function VistaBecarios({ onOpen, onError }) { try { await apiFetch(`/becarios/${b.id}/aprobar`, { method: "POST" }); await load(); } catch (e) { onError(e.message); } }; const pendientes = (becarios || []).filter((b) => b.estado === "pendiente"); - const nuevoBtn = (size) => setForm({})}>{iconBtn("plus", { size: 16, color: "#fff", sw: 2.2 })}Nuevo becario; // Buscador local sobre la lista ya cargada (nombre, celular, matrícula, institución). const term = q.trim().toLowerCase(); const filtrados = term @@ -218,12 +217,11 @@ function VistaBecarios({ onOpen, onError }) { return (
-
+

Becarios

- {nuevoBtn()}
{becarios === null ?

Cargando…

: - becarios.length === 0 ? : + becarios.length === 0 ? :
setQ(e.target.value)} placeholder="Buscar por nombre, celular, matrícula o institución…" style={{ paddingRight: "34px" }} />