Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
- <a class="navbar-brand" href="#">Spring Boot</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse"
- data-target="#navbarNav" aria-controls="navbarNav"
- aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarNav">
- <ul class="navbar-nav">
- <li class="nav-item active"><a class="nav-link" href="#">Home
- <span class="sr-only">(current)</span>
- </a></li>
- <li class="nav-item"><a class="nav-link" th:href="@{/listar}">Clientes</a>
- </li>
- </ul>
- </div>
- </nav>
- <div class="container">
- <h1
- class="text-secondary border border-success border-top-0 border-left-0 border-right-0"
- th:text="${titulo}"></h1>
- <p><a th:href="@{/form}" class="btn btn-success btn-xs">crear cliente</a></p>
- <table class="table table-striped">
- <thead class="bg-dark">
- <tr>
- <th>id</th>
- <th>nombre</th>
- <th>apellido</th>
- <th>email</th>
- <th>editar</th>
- <th>eliminar</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="cliente: ${clientes}">
- <td th:text="${cliente.id}"></td>
- <td th:text="${cliente.nombre}"></td>
- <td th:text="${cliente.apellido}"></td>
- <td th:text="${cliente.email}"></td>
- <td><a class="btn btn-primary btn-xs" th:href="@{/form/} + ${cliente.id}" th:text="'editar'"></a></td>
- <td><a class="btn btn-danger btn-xs" th:href="@{/eliminar/} + ${cliente.id}" th:text="'eliminar'" onclick="return confirm('Estás seguro que quieres eliminar?');"></a></td>
- </tr>
- </tbody>
- </table>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement