-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (46 loc) · 2.06 KB
/
index.html
File metadata and controls
55 lines (46 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" lang="en" xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity6">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" th:href="@{'/css/main.css'}">
</head>
<body>
<th:block th:insert="layout::header"></th:block>
<section id="content">
<h3>View Inventory</h3>
<table class="table table-striped table-hover">
<thead>
<tr>
<th style="width: 50px"> </th>
<th style="width: 50px"> </th>
<th>ID</th>
<th>Brand</th>
<th>Model</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr th:if="${watches}" th:each="watch : ${watches}">
<td><a th:href="@{'/edit-watch/' + ${watch.id()}}" sec:authorize="isAuthenticated()" type="button" class="btn btn-light">Edit</a></td>
<td><a th:href="@{'/delete-watch/' + ${watch.id()}}" sec:authorize="isAuthenticated()" type="button" class="btn btn-danger">Delete</a></td>
<td th:text="${watch.id}">1</td>
<td th:text="${watch.brand}">Rolex</td>
<td th:text="${watch.make}">Daytona</td>
<td th:text="${watch.price}">$23,500.00</td>
</tr>
<tr th:if="${watches.size() eq 0}">
<td colspan="6">No watches are found :(</td>
</tr>
</tbody>
</table>
</section>
<th:block th:insert="layout::footer"></th:block>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
</body>
</html>