diff --git a/apps/web/components/eventtype/CustomEventTypeModal.tsx b/apps/web/components/eventtype/CustomEventTypeModal.tsx index 441f191301..fc40298427 100644 --- a/apps/web/components/eventtype/CustomEventTypeModal.tsx +++ b/apps/web/components/eventtype/CustomEventTypeModal.tsx @@ -65,37 +65,51 @@ const CustomEventTypeModalForm: FC = (props) => {

{t("available_variables")}

-
-

{`{Event type title}`}

-

{t("event_name_info")}

-
-
-

{`{Organiser}`}

-

{t("your_full_name")}

-
-
-

{`{Organiser first name}`}

-

{t("organizer_first_name")}

-
-
-

{`{Scheduler}`}

-

{t("scheduler_full_name")}

-
- {isNameFieldSplit && ( +
-

{`{Scheduler first name}`}

-

{t("scheduler_first_name")}

+

{`{Event type title}`}

+

{t("event_name_info")}

- )} - {isNameFieldSplit && (
-

{`{Scheduler last name}`}

-

{t("scheduler_last_name")}

+

{`{Organiser}`}

+

{t("your_full_name")}

- )} -
-

{`{Location}`}

-

{t("location_info")}

+
+

{`{Organiser first name}`}

+

{t("organizer_first_name")}

+
+
+

{`{Scheduler}`}

+

{t("scheduler_full_name")}

+
+ {isNameFieldSplit && ( +
+

{`{Scheduler first name}`}

+

{t("scheduler_first_name")}

+
+ )} + {isNameFieldSplit && ( +
+

{`{Scheduler last name}`}

+

{t("scheduler_last_name")}

+
+ )} +
+

{`{Location}`}

+

{t("location_info")}

+
+ {event.bookingFields && ( +

{t("booking_question_response_variables")}

+ )} + {event.bookingFields && + Object.keys(event.bookingFields).map((bookingfield, index) => ( +
+

{`{${bookingfield}}`}

+

+ {event.bookingFields?.[bookingfield]?.toString()} +

+
+ ))}

{t("preview")}

diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 1a48c8fed2..af842cd995 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -2501,5 +2501,6 @@ "event_expired": "This event is expired", "skip_contact_creation": "Skip creating contacts if they do not exist in {{appName}} ", "skip_writing_to_calendar_note": "If your ICS link is read-only (e.g., Proton Calendar), check the box above to avoid errors. You'll also need to manually update your calendar for changes.", + "booking_question_response_variables": "Booking question response variables", "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" }