From dfc0468ea14c420606e2abc7f8d916cadc1d7361 Mon Sep 17 00:00:00 2001 From: dre0059 <eliska.dreveniakova@vsb.cz> Date: Wed, 23 Apr 2025 23:05:46 +0200 Subject: [PATCH] Final project - ready to present :) --- src/main/resources/templates/reservations.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/resources/templates/reservations.html b/src/main/resources/templates/reservations.html index 2e361bd..89c5618 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(''); -- GitLab