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> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a class="dropdown-item" href="nuevo">Crear</a></li> <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> </ul>
</li> </li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">


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

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


Loading…
Cancel
Save