<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
|
|
<html lang="es"
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:th="http://www.thymeleaf.org"
|
|
xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
|
|
<head th:replace="~{head/head :: mihead}"></head>
|
|
|
|
|
|
|
|
<body class="d-flex flex-column h-100">
|
|
<header th:replace="~{menu/m1 :: usuarios}"></header>
|
|
<div class="p-5 mb-4 bg-light rounded-3">
|
|
<div class="container-fluid py-5">
|
|
<h1 class="display-5 fw-bold">Listado de usuarios.</h1>
|
|
<p class="col-md-8 fs-4">Ejemplo de CRUD</p>
|
|
<a class="btn btn-lg btn-primary" href="https://2dam.fp.edu.es/gitea/conecta2">Código fuente</a>
|
|
</div>
|
|
</div>
|
|
|
|
<main>
|
|
<div class="container">
|
|
<a th:href="@{/nuevo}" class="btn btn-success">Añadir</a>
|
|
<table class="table table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#idUsuario</th>
|
|
<th scope="col">nombres</th>
|
|
<th scope="col">Operaciones</th>
|
|
</thead>
|
|
<tbody>
|
|
<tr th:each="usuario :${user} ">
|
|
<th scope="row" th:text="${usuario.idUsuario}">1</th>
|
|
<td th:text="${usuario.nombres}">Mark</td>
|
|
<td>
|
|
<a th:href="@{/editar/{id}(id=${usuario.idUsuario})}" class="btn btn-info">Editar</a> |
|
|
<a th:href="@{/borrar/{id}(id=${usuario.idUsuario})}" class="btn btn-danger">Borrar</a>
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</main>
|
|
|
|
|
|
<footer th:replace="~{foot/pie :: pie}"></footer>
|
|
|
|
</body>
|
|
</html>
|