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