new view is create Periodo
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
|
||||
export default function PeriodoPage() {
|
||||
const [periodos] = useState([
|
||||
{ id: 1, nombre: "2024-2", activo: true },
|
||||
{ id: 2, nombre: "2025-1", activo: false },
|
||||
{ id: 3, nombre: "2025-2", activo: false },
|
||||
{ id: 4, nombre: "2026-1", activo: true },
|
||||
{ id: 5, nombre: "2026-2", activo: false },
|
||||
{ id: 6, nombre: "2027-1", activo: false },
|
||||
]);
|
||||
|
||||
return (
|
||||
<div style={{ padding: "40px" }}>
|
||||
<h1 style={{ color: "#b8860b" }}>PERIODO ESCOLAR</h1>
|
||||
|
||||
<table border={1} cellPadding={10} style={{ marginTop: "20px" }}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Periodo</th>
|
||||
<th>Activo</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{periodos.map((p) => (
|
||||
<tr key={p.id}>
|
||||
<td>{p.id}</td>
|
||||
<td>{p.nombre}</td>
|
||||
<td>{p.activo ? "Sí" : "No"}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -41,6 +41,7 @@ export async function proxy(request: NextRequest) {
|
||||
"/AsignacionEquipo",
|
||||
"/Monitor",
|
||||
"/ActivosMantenimiento",
|
||||
"/Periodo",
|
||||
];
|
||||
|
||||
if (role === 5 && !onlyImpresiones.includes(pathname)) {
|
||||
@@ -66,6 +67,7 @@ export const config = {
|
||||
matcher: [
|
||||
"/",
|
||||
"/Reportes",
|
||||
"/Periodo",
|
||||
"/Monitor",
|
||||
"/QuitarSancion",
|
||||
"/Programas",
|
||||
|
||||
Reference in New Issue
Block a user