main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[d24f17c] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8">
|
---|
| 5 | <title>Your past reservations</title>
|
---|
| 6 | </head>
|
---|
| 7 | <div class="container">
|
---|
| 8 | <h1>Past Reservations</h1>
|
---|
| 9 | <table class="table">
|
---|
| 10 | <thead>
|
---|
| 11 | <tr>
|
---|
| 12 | <th>Reservation Date & Time</th>
|
---|
| 13 | <th>Restaurant</th>
|
---|
| 14 | <th>CheckInTime</th>
|
---|
| 15 | <th>Table</th>
|
---|
| 16 | <th>Party Size</th>
|
---|
| 17 | <th>Special Requests</th>
|
---|
| 18 | <th>Status</th>
|
---|
| 19 | <th>Cancellation Reason</th>
|
---|
| 20 | </tr>
|
---|
| 21 | </thead>
|
---|
| 22 | <tbody>
|
---|
| 23 | <!-- Iterate over the list of ReservationHistory objects -->
|
---|
| 24 | <tr th:each="reservation : ${historyReservations}">
|
---|
| 25 | <!-- Format reservationDateTime using Thymeleaf's date formatting -->
|
---|
| 26 | <td th:text="${reservation?.getRestaurant()?.getName()}"></td>
|
---|
| 27 | <td th:text="${reservation?.getCheckInDate()}"></td>
|
---|
| 28 | <td th:text="${#temporals?.format(reservation.reservationDateTime, 'yyyy-MM-dd HH:mm')}"></td>
|
---|
| 29 | <td th:text="${reservation?.table?.getId()}"></td>
|
---|
| 30 | <td th:text="${reservation?.partySize}"></td>
|
---|
| 31 | <td th:text="${reservation?.specialRequests}"></td>
|
---|
| 32 | <td th:text="${reservation?.status}"></td>
|
---|
| 33 | <td th:text="${reservation?.cancellationReason}"></td>
|
---|
| 34 | </tr>
|
---|
| 35 | </tbody>
|
---|
| 36 | </table>
|
---|
| 37 | </div> |
---|
Note:
See
TracBrowser
for help on using the repository browser.