|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html lang="en">
|
3 |
| -<head> |
4 |
| - <meta charset="UTF-8"> |
5 |
| - <title>Title</title> |
6 |
| - |
7 |
| - <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" |
8 |
| - integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> |
9 |
| - |
10 |
| - <!-- Font Awesome CSS --> |
11 |
| - <link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.3.1/css/all.css'> |
12 |
| - <!-- Include jQuery from Google CDN --> |
13 |
| - <link rel="stylesheet" th:href="@{/style.css}"> |
14 |
| - <link th:src="@{/index.js}"> |
15 |
| - |
16 |
| -</head> |
17 |
| - |
18 |
| -</html> |
19 |
| - |
20 |
| -<!DOCTYPE html> |
21 |
| -<html lang="en" xmlns:th="http://www.thymeleaf.org"> |
22 | 3 | <head>
|
23 | 4 | <meta charset="UTF-8">
|
24 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
25 |
| - <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" |
26 |
| - integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> |
27 |
| - |
28 |
| - <!-- Font Awesome CSS --> |
| 6 | + <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet"> |
29 | 7 | <link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.3.1/css/all.css'>
|
30 |
| - <link rel="preconnect" href="https://fonts.googleapis.com"> |
31 |
| - <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
32 |
| - <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet"> |
33 |
| - <!-- Include jQuery from Google CDN --> |
34 |
| - <link rel="stylesheet" th:href="@{/style.css}"> |
35 |
| - <link th:src="@{script.js}"> |
36 |
| - |
| 8 | + <link rel="stylesheet" href="/style.css"> |
| 9 | + <script src="/index.js"></script> |
37 | 10 | <title>Litter Snap</title>
|
38 | 11 | </head>
|
39 | 12 |
|
40 | 13 | <body>
|
41 |
| - |
42 | 14 | <div class="background-overlay"></div>
|
43 | 15 | <div class="container-fluid">
|
44 | 16 | <!-- Button to trigger the modal -->
|
45 | 17 | <div class="row justify-content-end m-3">
|
46 |
| - <div class="btn-group col-12 col-md-4 col-lg-2 fixed-buttons"> |
| 18 | + <div class="btn-group col-12 col-md-4 col-lg-2 fixed-buttons justify-content-end"> |
47 | 19 | <div class="d-flex justify-content-end align-items-center">
|
48 | 20 | <div class="me-2">Welcome, <span th:text="${username}"></span></div>
|
49 | 21 | <div class="dropdown">
|
|
68 | 40 | <thead>
|
69 | 41 | <tr>
|
70 | 42 | <th>Date</th>
|
71 |
| - <th>By</th> |
72 |
| - <th>Address</th> |
| 43 | + <th>Street</th> |
| 44 | + <th>City</th> |
| 45 | + <th>Country</th> |
73 | 46 | <th>PostCode</th>
|
74 | 47 | <th>Status</th>
|
75 | 48 | <th>Action</th>
|
76 | 49 | </tr>
|
77 | 50 | </thead>
|
78 | 51 | <tbody>
|
79 |
| - <div th:if="${not #lists.isEmpty(litters)}"> |
80 |
| - <tr th:each="litter : ${litters}"> |
81 |
| - <td th:text="${litter.getCreatedAt()}"></td> |
82 |
| - <td th:text="${litter.getCreatedBy()}"></td> |
83 |
| - <td th:text="${litter.getAddress().firstLine}"></td> |
84 |
| - <td th:text="${litter.getAddress().postCode}"></td> |
85 |
| - <td th:text="${litter.getStatus()}"></td> |
86 |
| - <td> |
87 |
| - <div class="btn-group"> |
88 |
| - <a th:href="@{/thy/{id}(id=${litter.id})}" |
89 |
| - class="btn btn-success btn-sm">View</a> |
90 |
| - <a th:href="@{/thy/{id}/edit(id=${litter.id})}" class="btn btn-warning btn-sm">Edit</a> |
91 |
| - <a th:href="@{/thy/{id}/delete(id=${litter.id})}" class="btn btn-danger btn-sm">Delete</a> |
92 |
| - </div> |
93 |
| - </td> |
94 |
| - </tr> |
95 |
| - </div> |
96 |
| - <div th:if="${#lists.isEmpty(litters)}"> |
97 |
| - <tr> |
98 |
| - <td colspan="6"> |
99 |
| - |
100 |
| - </td> |
101 |
| - </tr> |
102 |
| - </div> |
| 52 | + <tr th:if="${not #lists.isEmpty(litters)}" th:each="litter : ${litters}"> |
| 53 | + <td th:text="${litter.getCreatedAt()}"></td> |
| 54 | + <td th:text="${litter.getAddress().firstLine}"></td> |
| 55 | + <td th:text="${litter.getAddress().city}"></td> |
| 56 | + <td th:text="${litter.getAddress().country}"></td> |
| 57 | + <td th:text="${litter.getAddress().postCode}"></td> |
| 58 | + <td th:text="${litter.getStatus()}"></td> |
| 59 | + <td> |
| 60 | + <div class="btn-group"> |
| 61 | + <a th:href="@{/thy/litter/{id}(id=${litter.id})}" class="btn btn-success btn-sm" data-bs-toggle="modal" data-bs-target="#showLitterDetailsModal">View</a> |
| 62 | + <a th:href="@{/thy/litter/edit/{id}(id=${litter.id})}" class="btn btn-warning btn-sm" >Edit</a> |
| 63 | + <a th:href="@{/thy/litter/delete/{id}(id=${litter.id})}" class="btn btn-danger btn-sm">Delete</a> |
| 64 | + </div> |
| 65 | + </td> |
| 66 | + </tr> |
| 67 | + <tr th:if="${#lists.isEmpty(litters)}"> |
| 68 | + <td colspan="6"></td> |
| 69 | + </tr> |
103 | 70 | </tbody>
|
104 | 71 | </table>
|
105 | 72 | </div>
|
106 | 73 | </div>
|
107 | 74 | </div>
|
108 | 75 | </div>
|
109 | 76 |
|
110 |
| - |
111 | 77 | <div class="row d-flex align-items-end justify-content-end min-vh-100">
|
112 |
| - <div class="col-12 col-md-8 col-lg-6 "> |
| 78 | + <div class="col-12 col-md-8 col-lg-6"> |
113 | 79 | <div class="container logged-logo">
|
114 | 80 | <div class="row">
|
115 | 81 | <div class="col-10 col-md-9 col-lg-9">
|
116 | 82 | <!-- Content of the first column -->
|
117 | 83 | <span class="logged-logo-name">LitterSnap</span>
|
118 | 84 | <br>
|
119 |
| - <span class="logged-logo-slogan">IF YOU CAN SEE IT, YOU CAN FIX IT...</span> |
120 | 85 | </div>
|
121 | 86 | <div class="col-2 col-md-3 col-lg-3 d-flex justify-content-end align-items-end">
|
122 |
| - <img th:src="@{/images/ManAndPhone.png}" alt="Image" class="man-with-the-phone-icon"> |
| 87 | + <img src="/images/ManAndPhone.png" alt="Image" class="man-with-the-phone-icon"> |
123 | 88 | </div>
|
124 | 89 | </div>
|
125 | 90 | </div>
|
126 | 91 | </div>
|
127 | 92 | </div>
|
128 | 93 |
|
129 |
| - |
130 |
| - |
131 | 94 | </div>
|
132 |
| - |
133 |
| - |
134 | 95 | <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.7/dist/umd/popper.min.js"
|
135 | 96 | integrity="sha384-zYPOMqeu1DAVkHiLqWBUTcbYfZ8osu1Nd6Z89ify25QV9guujx43ITvfi12/QExE"
|
136 | 97 | crossorigin="anonymous"></script>
|
137 | 98 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js"
|
138 | 99 | integrity="sha384-Y4oOpwW3duJdCWv5ly8SCFYWqFDsfob/3GkgExXKV4idmbt98QcxXYs9UoXAB7BZ"
|
139 | 100 | crossorigin="anonymous"></script>
|
140 |
| - |
141 | 101 | <div class="footer-overlay">
|
142 | 102 | <footer>
|
143 | 103 | <div class="container-fluid">
|
144 | 104 | <p>© 2023 Vasile, Csaba and Kevin. Wiley Edge. All rights reserved.</p>
|
145 | 105 | </div>
|
146 | 106 | </footer>
|
147 | 107 | </div>
|
148 |
| - |
149 | 108 | </body>
|
150 | 109 | </html>
|
0 commit comments