[d24f17c] | 1 | <html lang="en" xmlns:th="http://www.thymeleaf.org">
|
---|
| 2 | <head>
|
---|
| 3 | <meta charset="UTF-8">
|
---|
| 4 | <title>Customers</title>
|
---|
| 5 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
---|
| 6 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
---|
| 7 | </head>
|
---|
| 8 | <div>
|
---|
| 9 | <h1>Customers List</h1>
|
---|
| 10 | <table class="table">
|
---|
| 11 | <thead>
|
---|
| 12 | <tr>
|
---|
| 13 | <th scope="col">Customer ID</th>
|
---|
| 14 | <th scope="col">Name</th>
|
---|
| 15 | <th scope="col">Email</th>
|
---|
| 16 | <th scope="col">Membership Status level</th>
|
---|
| 17 | </tr>
|
---|
| 18 | </thead>
|
---|
| 19 | <tbody>
|
---|
| 20 | <!-- For each product you should have one <tr> like below -->
|
---|
| 21 | <tr class="item" th:each="customer: ${customers}">
|
---|
| 22 | <td th:text="${customer.getCustomerId()}"></td>
|
---|
| 23 | <td th:text="${customer.getFirstName() + ' ' + customer.getLastName()}">[prod.name]</td>
|
---|
| 24 | <td th:text="${customer.getEmail()}">[prod.price]</td>
|
---|
| 25 | <td th:text="${customer.getMembershipLevel()}">[prod.quantity]</td>
|
---|
| 26 | <!-- <td>-->
|
---|
| 27 | <!-- <ul>-->
|
---|
| 28 | <!-- <!– For each product's category you should display one <li> element like the one below –>-->
|
---|
| 29 | <!-- <li th:each="cat: ${prod.categories}" th:text="${cat.name}">[cat.name]</li>-->
|
---|
| 30 | <!-- </ul>-->
|
---|
| 31 | <!-- </td>-->
|
---|
| 32 | <!-- <td th:text="${prod.creator}">[prod.creator]</td>-->
|
---|
| 33 | <!-- <td>-->
|
---|
| 34 | <!-- <!– ProductsController.delete –>-->
|
---|
| 35 | <!-- <form th:method="POST" th:action="@{'/products/{id}/delete' (id=${prod.id})}"-->
|
---|
| 36 | <!-- sec:authorize="hasRole('ROLE_ADMIN')">-->
|
---|
| 37 | <!-- <button type="submit" class="delete-item">Delete</button>-->
|
---|
| 38 | <!-- </form>-->
|
---|
| 39 | <!-- <!– ProductsController.showEdit –>-->
|
---|
| 40 | <!-- <a th:href="@{'/products/{id}/edit' (id=${prod.id})}" class="edit-item" sec:authorize="hasRole('ROLE_ADMIN')">Edit</a>-->
|
---|
| 41 | <!-- </td>-->
|
---|
| 42 | </tr>
|
---|
| 43 | </tbody>
|
---|
| 44 | </table>
|
---|
| 45 | </div> |
---|