From c25bed011f5d100ac6c55559e473a91fc4bfea97 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Thu, 18 Feb 2021 16:10:47 -0800 Subject: [PATCH] Appt reminder from event IO-612 --- bodyshop_translations.babel | 21 +++++++++++++++++++ .../schedule-event.component.jsx | 18 +++++++++++++++- client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + 5 files changed, 41 insertions(+), 1 deletion(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 946a6a749..43cfc51cb 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -322,6 +322,27 @@ + + sendreminder + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + viewjob false diff --git a/client/src/components/schedule-event/schedule-event.component.jsx b/client/src/components/schedule-event/schedule-event.component.jsx index 66de70e24..4334ed783 100644 --- a/client/src/components/schedule-event/schedule-event.component.jsx +++ b/client/src/components/schedule-event/schedule-event.component.jsx @@ -6,10 +6,11 @@ import { Link } from "react-router-dom"; import { setModalContext } from "../../redux/modals/modals.actions"; import CurrencyFormatter from "../../utils/CurrencyFormatter"; import PhoneFormatter from "../../utils/PhoneFormatter"; +import { GenerateDocument } from "../../utils/RenderTemplate"; import DataLabel from "../data-label/data-label.component"; import ScheduleAtChange from "./schedule-event.at.component"; import ScheduleEventColor from "./schedule-event.color.component"; - +import { TemplateList } from "../../utils/TemplateConstants"; const mapDispatchToProps = (dispatch) => ({ setScheduleContext: (context) => dispatch(setModalContext({ context: context, modal: "schedule" })), @@ -77,6 +78,21 @@ export function ScheduleEventComponent({ ) : null} + diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index 05b3bab3f..4dee3949b 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -25,6 +25,7 @@ "intake": "Intake", "new": "New Appointment", "reschedule": "Reschedule", + "sendreminder": "Send Reminder", "viewjob": "View Job" }, "errors": { diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index cb38792c3..5fe4bcc13 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -25,6 +25,7 @@ "intake": "Consumo", "new": "Nueva cita", "reschedule": "Reprogramar", + "sendreminder": "", "viewjob": "Ver trabajo" }, "errors": { diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index bbe619a95..4563ca3e6 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -25,6 +25,7 @@ "intake": "Admission", "new": "Nouveau rendez-vous", "reschedule": "Replanifier", + "sendreminder": "", "viewjob": "Voir le travail" }, "errors": {