Skip to content

Commit

Permalink
Change calendar event title
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Jan 8, 2024
1 parent 229a360 commit d94a571
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
13 changes: 11 additions & 2 deletions media_commons_booking_app/src/client/booking/approval_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ <h2>Room Reservation Request</h2>
<?= roomSetup ?>
<?= setupDetails ?>
</p>
<p>
Chartfield for Room setup?:
<?= char ?>
<?= chartFieldForRoomSetup ?>
</p>
<p>
Media Services:
Expand All @@ -151,11 +152,19 @@ <h2>Room Reservation Request</h2>
Catering Details:
<?= cateringService ?>
</p>

<p>
Chartfield for Catering?:
<?= chartFieldForCatering ?>
</p>
<p>
Hire Security:
<?= hireSecurity ?>
</p>
<p>
Chartfield for Hiring Security?:
<?= chartFieldForSecurity ?>
</p>

<p>
<a
href="https://sites.google.com/nyu.edu/370j-booking/admin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ const FormInput = ({ hasEmail, handleParentSubmit, selectedRoom }) => {
const onSubmit: SubmitHandler<Inputs> = (data) => {
const dumpMediaServices = data.mediaServices || [];
//@ts-ignore
data.mediaServices = dumpMediaServices?.join(', ');
data.mediaServices = Array.isArray(dumpMediaServices)
? dumpMediaServices.join(', ')
: dumpMediaServices;
handleParentSubmit(data);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const SheetEditor = () => {
)?.calendarId;
const calendarEventId = await serverFunctions.addEventToCalendar(
roomCalendarId,
`[REQUESTED] Room request from ${userEmail}`,
`[REQUESTED] ${room.roomId} ${data.department} ${userEmail}`,
'Your reservation is not yet confirmed. The coordinator will review and finalize your reservation within a few days.',
bookInfo.startStr,
bookInfo.endStr,
Expand Down

0 comments on commit d94a571

Please sign in to comment.