Refactor entity classes to change ID type from Long to Integer; update User registration method to accept Departamento object

This commit is contained in:
jon ander 2025-04-10 19:48:16 +02:00
parent 5df6894c10
commit d8d7c089bb
2 changed files with 44 additions and 0 deletions

View File

@ -11,9 +11,28 @@
<button>Gestión de Usuarios</button>
</a>
<!-- TODO: Cambiar la ruta a la de gestionar inventario -->
<a href="/Inventario/user_management">
<button>Gestión de Productos</button>
</a>
<a href="/Inventario/user_management">
<button>Gestión de Departamentos</button>
</a>
<a href="/Inventario/user_management">
<button>Gestión de Categorías</button>
</a>
<a href="/Inventario/user_management">
<button>Gestión de Ubicaciones</button>
</a>
<a href="/Inventario/user_management">
<button>Gestión de Inventario</button>
</a>
<a href="/Inventario/user_management">
<button>Gestión de Categorías</button>
</a>
<a href="/Inventario/user_management">
<button>Gestión de Tipos de dato</button>
</a>
<a href="/Inventario/home">
<button class="button_salir">Volver al inicio</button>
</a>

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="es" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml">
<body>
<div th:fragment="tableFragment(titulo, columnas, datos, acciones)">
<h2 th:text="${titulo}"></h2>
<div class="table-container">
<table class="table1">
<thead>
<tr>
<th th:each="columna : ${columnas}" th:text="${columna}"></th>
</tr>
</thead>
<tbody>
<tr th:each="fila : ${datos}">
<td th:each="celda : ${fila}" th:text="${celda}"></td>
<td th:if="${acciones}">
<button th:each="accion : ${acciones}" th:text="${accion.nombre}" th:onclick="${accion.evento}"></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>