forked from chaitanya-sarma/adv_java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowsePurchases.html
More file actions
35 lines (32 loc) · 894 Bytes
/
browsePurchases.html
File metadata and controls
35 lines (32 loc) · 894 Bytes
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
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Browse Purchases - SportyStuf Purchase Entry System</title>
</head>
<body>
<h1>Browse Purchases</h1>
<a href="add">Add Purchase</a>
<table border="1">
<tr>
<td> </td>
<td>Purchase Id</td>
<td>Customer Name</td>
<td>Purchase Date</td>
<td>Product</td>
</tr>
<tr th:each="purchase : ${purchaseList}">
<!-- Add Edit link -->
<td>Edit</td>
<!-- Other purchase details -->
<td th:text="${purchase.id}"></td>
<td th:text="${purchase.customerName}"></td>
<td th:text='${#dates.format(purchase.purchaseDate, "MMM d, yyyy")}'></td>
<td th:text="${purchase.product}"></td>
</tr>
</table>
<br />
<!-- Need URL for index page -->
<a th:href="@{/index.html}">Back to Main Menu</a>
<div th:include="footer :: content"></div>
</body>
</html>