diff --git a/src/main/resources/templates/reservations.html b/src/main/resources/templates/reservations.html index 2e361bd4f3ef1f3b388aac393f2a65d7550eebd3..89c56188184ec74cf5f90de355878a4d806d9fa9 100644 --- a/src/main/resources/templates/reservations.html +++ b/src/main/resources/templates/reservations.html @@ -76,6 +76,7 @@ <th>Client Email</th> <th>Date & Time</th> <th>Coach</th> + <th>Equipment</th> <th>Total price (€)</th> </tr> </thead> @@ -259,6 +260,12 @@ <td>${reservation.customer?.email || 'Unknown'}</td> <td>${new Date(reservation.fromDateTime).toLocaleString()} - ${new Date(reservation.toDateTime).toLocaleString()}</td> <td>${reservation.coach.lastName || '--'}</td> + <td>${ + reservation.sportsEquipmentList && reservation.sportsEquipmentList.length > 0 + ? reservation.sportsEquipmentList.map(eq => eq.id + " " + eq.name).join(', ') + : '--' + }</td> + <td>${reservation.totalPrice?.toFixed(2)} €</td> </tr> `).join('');