-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.html
More file actions
52 lines (43 loc) · 1.74 KB
/
home.html
File metadata and controls
52 lines (43 loc) · 1.74 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
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity6">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
</head>
<body>
<!--header-->
<th:block th:insert="layout::header"></th:block>
<section>
<table class="table table-striped">
<tr>
<th>Pet Id</th>
<th>Name</th>
<th>Type</th>
<th>Weight</th>
<th>Age</th>
</tr>
<tr th:if="${pets}" th:each="pet : ${pets}">
<td th:text="${pet.petID()}"></td>
<td th:text="${pet.petName()}"></td>
<td th:text="${pet.petType()}"></td>
<td th:text="${pet.petWeight()}"></td>
<td th:text="${pet.petAge()}"></td>
<td><a th:href="@{'/edit/' + ${pet.petID()}}" sec:authorize="isAuthenticated()" type="button" class="btn btn-light">Edit Pet</a></td>
<td><a th:href="@{'/remove/' + ${pet.petID()}}" sec:authorize="isAuthenticated()" type="button" class="btn btn-danger">Remove Pet</a></td>
</tr>
<tr th:if="${pets.size()} eq 0">
<p th:text="${find}"></p>
</tr>
</table>
</section>
<th:block th:insert="layout::footer"></th:block>
<!--content-->
<div title="content">
</div>
<!--footer-->
<div title="footer">
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>