Browse Source

borrarUser ok

master
Juanjo 1 year ago
parent
commit
bf994a9ab7
2 changed files with 5 additions and 3 deletions
  1. +0
    -2
      src/main/resources/templates/menu/m1.html
  2. +5
    -1
      src/main/resources/templates/usuarios.html

+ 0
- 2
src/main/resources/templates/menu/m1.html View File

@ -28,8 +28,6 @@
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="nuevo">Crear</a></li>
<li><a class="dropdown-item" href="#">Actualiazar</a></li>
<li><a class="dropdown-item" href="#">Borrar</a></li>
</ul>
</li>
<li class="nav-item dropdown">


+ 5
- 1
src/main/resources/templates/usuarios.html View File

@ -16,6 +16,7 @@
<main>
<div class="container">
<a th:href="@{/nuevo}" class="btn btn-success">Añadir</a>
<table class="table table-sm">
<thead>
<tr>
@ -27,7 +28,10 @@
<tr th:each="usuario :${user} ">
<th scope="row" th:text="${usuario.idUsuario}">1</th>
<td th:text="${usuario.nombres}">Mark</td>
<td></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>


Loading…
Cancel
Save