add some filed to booking table

This commit is contained in:
Thomas Ruoff
2023-02-06 08:38:18 +01:00
parent 40ca2253b9
commit ded6e29646

View File

@@ -13,6 +13,7 @@ export default function BookingTable({
{ name: 'Status', value: booking.status },
{ name: 'Buchungszeitraum', value: daysFormatFrontend(booking.days) },
{ name: 'Organisation', value: booking.org },
{ name: 'Name', value: booking.name },
{
name: 'Addresse',
value: (
@@ -32,8 +33,10 @@ export default function BookingTable({
</Link>
),
},
{ name: 'Phone', value: booking.phone },
{ name: 'Zweck', value: booking.purpose },
{ name: 'Ziel', value: booking.destination },
{ name: 'CalendarEventId', value: booking.calendarEventId },
]
return (
<div
@@ -46,6 +49,12 @@ export default function BookingTable({
Booking {booking.uuid}
</Link>
</h3>
<p className="mt-1 max-w-2xl text-sm text-gray-500">
Created{' '}
{new Date(booking.createdAt as string).toLocaleString(
new Intl.Locale('de')
)}
</p>
<p className="mt-1 max-w-2xl text-sm text-gray-500">
Last updated{' '}
{new Date(booking.updatedAt as string).toLocaleString(