diff --git a/frontend/src/components/housing/enquiry/EnquiryIntakeConfirmation.vue b/frontend/src/components/housing/enquiry/EnquiryIntakeConfirmation.vue new file mode 100644 index 00000000..680cb5ac --- /dev/null +++ b/frontend/src/components/housing/enquiry/EnquiryIntakeConfirmation.vue @@ -0,0 +1,31 @@ + + + diff --git a/frontend/src/components/housing/enquiry/EnquiryIntakeForm.vue b/frontend/src/components/housing/enquiry/EnquiryIntakeForm.vue index 09555be3..85ce7498 100644 --- a/frontend/src/components/housing/enquiry/EnquiryIntakeForm.vue +++ b/frontend/src/components/housing/enquiry/EnquiryIntakeForm.vue @@ -7,7 +7,8 @@ import { object, string } from 'yup'; import { Dropdown, InputMask, RadioList, InputText, StepperNavigation, TextArea } from '@/components/form'; import CollectionDisclaimer from '@/components/housing/CollectionDisclaimer.vue'; -import { Button, Card, Divider, Message, useConfirm, useToast } from '@/lib/primevue'; +import EnquiryIntakeConfirmation from '@/components/housing/enquiry/EnquiryIntakeConfirmation.vue'; +import { Button, Card, Divider, useConfirm, useToast } from '@/lib/primevue'; import { enquiryService, submissionService } from '@/services'; import { useConfigStore } from '@/store'; import { YES_NO_LIST } from '@/utils/constants/application'; @@ -442,22 +443,10 @@ async function emailConfirmation(activityId: string) { -
-

Confirmation of Submission

- - Your enquiry has been successfully submitted. - -

Confirmation ID: {{ assignedActivityId }}

-
- A Housing Navigator will review your submission and contact you. Please check your email for the confirmation - email and keep the confirmation ID for future reference. -
-
Go to Homepage
-
+ diff --git a/frontend/src/components/housing/submission/SubmissionIntakeConfirmation.vue b/frontend/src/components/housing/submission/SubmissionIntakeConfirmation.vue new file mode 100644 index 00000000..6b47de20 --- /dev/null +++ b/frontend/src/components/housing/submission/SubmissionIntakeConfirmation.vue @@ -0,0 +1,31 @@ + + + diff --git a/frontend/src/components/housing/submission/SubmissionIntakeForm.vue b/frontend/src/components/housing/submission/SubmissionIntakeForm.vue index 5a7edab4..1af75a8c 100644 --- a/frontend/src/components/housing/submission/SubmissionIntakeForm.vue +++ b/frontend/src/components/housing/submission/SubmissionIntakeForm.vue @@ -21,6 +21,9 @@ import { TextArea } from '@/components/form'; import CollectionDisclaimer from '@/components/housing/CollectionDisclaimer.vue'; +import EnquiryIntakeConfirmation from '@/components/housing/enquiry/EnquiryIntakeConfirmation.vue'; +import SubmissionAssistance from '@/components/housing/submission/SubmissionAssistance.vue'; +import SubmissionIntakeConfirmation from '@/components/housing/submission/SubmissionIntakeConfirmation.vue'; import { submissionIntakeSchema } from '@/components/housing/submission/SubmissionIntakeSchema'; import { Accordion, @@ -83,6 +86,7 @@ const { getConfig } = storeToRefs(useConfigStore()); const activeStep: Ref = ref(0); const addressGeocoderOptions: Ref> = ref([]); const assignedActivityId: Ref = ref(undefined); +const assistanceAssignedActivityId: Ref = ref(undefined); const editable: Ref = ref(true); const formRef: Ref | null> = ref(null); const geomarkAccordionIndex: Ref = ref(undefined); @@ -241,6 +245,10 @@ async function onSubmit(data: any) { } } +async function onSubmitAssistance(activityId: string) { + assistanceAssignedActivityId.value = activityId; +} + async function emailConfirmation(activityId: string) { const configCC = getConfig.value.ches?.submission?.cc; const body = confirmationTemplate({ @@ -344,7 +352,7 @@ onBeforeMount(async () => {