From 8570299d2291e215005f902c1e2ddb7a3ab1517b Mon Sep 17 00:00:00 2001 From: marzmehr Date: Sun, 5 Nov 2023 09:14:42 -0800 Subject: [PATCH 01/10] PFCF-420: Adding initial pathway module components --- .../guardianshipAffidavit/AboutAffiantGa.vue | 104 +++++ .../BackgroundCivilCourtProceedings.vue | 109 +++++ .../BackgroundCriminalHistory.vue | 109 +++++ .../BackgroundFamilyViolence.vue | 109 +++++ .../ElectronicFilingStatementGa.vue | 161 ++++++++ .../steps/guardianshipAffidavit/Exhibits.vue | 117 ++++++ .../steps/guardianshipAffidavit/FilingGA.vue | 142 +++++++ .../GuardianshipAffidavit.vue | 117 ++++++ .../GuardianshipAffidavitStep.vue | 50 +++ .../caringForchildGa/CaringForChildGa.vue | 324 +++++++++++++++ .../caringForchildGa/ChildrenSurvey.vue | 136 +++++++ .../forms/survey-childInfo.json | 53 +++ .../childrenDetailsGa/ChildrenDetailsGa.vue | 324 +++++++++++++++ .../childrenDetailsGa/ChildrenSurvey.vue | 136 +++++++ .../forms/survey-childInfo.json | 53 +++ .../forms/about-affiant-ga.json | 56 +++ .../background-civil-court-proceedings.json | 62 +++ .../forms/background-criminal-history.json | 62 +++ .../forms/background-family-violence.json | 62 +++ .../forms/electronic-filing-statement-ga.json | 119 ++++++ .../forms/filling-ga.json | 42 ++ .../forms/guardianship-affidavit.json | 67 +++ .../reviewAFF/PreviewFormsAFF.vue | 83 ++++ .../reviewAFF/ReviewYourAnswersAFF.vue | 93 +++++ .../reviewAFF/pdf/Form45.vue | 107 +++++ .../reviewAFF/pdf/Form45Layout.vue | 382 ++++++++++++++++++ web/src/filters/index.ts | 5 + web/src/store/modules/application.ts | 2 +- .../types/Application/StepsAndPages/index.ts | 18 + web/src/types/Application/index.ts | 13 + 30 files changed, 3216 insertions(+), 1 deletion(-) create mode 100644 web/src/components/steps/guardianshipAffidavit/AboutAffiantGa.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/BackgroundCivilCourtProceedings.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/BackgroundCriminalHistory.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/BackgroundFamilyViolence.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/ElectronicFilingStatementGa.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/Exhibits.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/FilingGA.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/GuardianshipAffidavit.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/GuardianshipAffidavitStep.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/caringForchildGa/CaringForChildGa.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/caringForchildGa/ChildrenSurvey.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/caringForchildGa/forms/survey-childInfo.json create mode 100644 web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/ChildrenDetailsGa.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/ChildrenSurvey.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/forms/survey-childInfo.json create mode 100644 web/src/components/steps/guardianshipAffidavit/forms/about-affiant-ga.json create mode 100644 web/src/components/steps/guardianshipAffidavit/forms/background-civil-court-proceedings.json create mode 100644 web/src/components/steps/guardianshipAffidavit/forms/background-criminal-history.json create mode 100644 web/src/components/steps/guardianshipAffidavit/forms/background-family-violence.json create mode 100644 web/src/components/steps/guardianshipAffidavit/forms/electronic-filing-statement-ga.json create mode 100644 web/src/components/steps/guardianshipAffidavit/forms/filling-ga.json create mode 100644 web/src/components/steps/guardianshipAffidavit/forms/guardianship-affidavit.json create mode 100644 web/src/components/steps/guardianshipAffidavit/reviewAFF/PreviewFormsAFF.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/reviewAFF/ReviewYourAnswersAFF.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/reviewAFF/pdf/Form45.vue create mode 100644 web/src/components/steps/guardianshipAffidavit/reviewAFF/pdf/Form45Layout.vue diff --git a/web/src/components/steps/guardianshipAffidavit/AboutAffiantGa.vue b/web/src/components/steps/guardianshipAffidavit/AboutAffiantGa.vue new file mode 100644 index 000000000..4fae8b231 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/AboutAffiantGa.vue @@ -0,0 +1,104 @@ + + + \ No newline at end of file diff --git a/web/src/components/steps/guardianshipAffidavit/BackgroundCivilCourtProceedings.vue b/web/src/components/steps/guardianshipAffidavit/BackgroundCivilCourtProceedings.vue new file mode 100644 index 000000000..a36f6fb96 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/BackgroundCivilCourtProceedings.vue @@ -0,0 +1,109 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/BackgroundCriminalHistory.vue b/web/src/components/steps/guardianshipAffidavit/BackgroundCriminalHistory.vue new file mode 100644 index 000000000..a36f6fb96 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/BackgroundCriminalHistory.vue @@ -0,0 +1,109 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/BackgroundFamilyViolence.vue b/web/src/components/steps/guardianshipAffidavit/BackgroundFamilyViolence.vue new file mode 100644 index 000000000..a36f6fb96 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/BackgroundFamilyViolence.vue @@ -0,0 +1,109 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/ElectronicFilingStatementGa.vue b/web/src/components/steps/guardianshipAffidavit/ElectronicFilingStatementGa.vue new file mode 100644 index 000000000..87e9a51e7 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/ElectronicFilingStatementGa.vue @@ -0,0 +1,161 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/Exhibits.vue b/web/src/components/steps/guardianshipAffidavit/Exhibits.vue new file mode 100644 index 000000000..9a92dd648 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/Exhibits.vue @@ -0,0 +1,117 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/FilingGA.vue b/web/src/components/steps/guardianshipAffidavit/FilingGA.vue new file mode 100644 index 000000000..d72252db4 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/FilingGA.vue @@ -0,0 +1,142 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/GuardianshipAffidavit.vue b/web/src/components/steps/guardianshipAffidavit/GuardianshipAffidavit.vue new file mode 100644 index 000000000..9a92dd648 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/GuardianshipAffidavit.vue @@ -0,0 +1,117 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/GuardianshipAffidavitStep.vue b/web/src/components/steps/guardianshipAffidavit/GuardianshipAffidavitStep.vue new file mode 100644 index 000000000..504c8c004 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/GuardianshipAffidavitStep.vue @@ -0,0 +1,50 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/caringForchildGa/CaringForChildGa.vue b/web/src/components/steps/guardianshipAffidavit/caringForchildGa/CaringForChildGa.vue new file mode 100644 index 000000000..612e01d13 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/caringForchildGa/CaringForChildGa.vue @@ -0,0 +1,324 @@ + + + + + diff --git a/web/src/components/steps/guardianshipAffidavit/caringForchildGa/ChildrenSurvey.vue b/web/src/components/steps/guardianshipAffidavit/caringForchildGa/ChildrenSurvey.vue new file mode 100644 index 000000000..3fd685f22 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/caringForchildGa/ChildrenSurvey.vue @@ -0,0 +1,136 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/caringForchildGa/forms/survey-childInfo.json b/web/src/components/steps/guardianshipAffidavit/caringForchildGa/forms/survey-childInfo.json new file mode 100644 index 000000000..0cc945d80 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/caringForchildGa/forms/survey-childInfo.json @@ -0,0 +1,53 @@ +{ + "title": "Child(ren) Information", + "pages": [ + { + "name": "Child(ren) Information", + "elements": [ + { + "type": "personname", + "name": "childName", + "title": "What is the name of the child?", + "isRequired": true, + "defaultSubstitution": "{ChildName}" + }, + { + "type": "text", + "name": "childDateOfBirth", + "title": "What is the child's date of birth?", + "isRequired": true, + "inputType": "date" + }, + { + "type": "comment", + "name": "relationToChild", + "title": "What is your relationship to the child?", + "description": "Use whatever wording best describes it, for example, father, step-mother, grandparent, etc.", + "isRequired": true, + "visible": false, + "visibleIf": "!{formOneRequired}" + }, + { + "type": "comment", + "name": "childRelationToOtherParty", + "title": "What is the other party's relationship to the child?", + "description": "Use whatever wording best describes it, for example, father, step-mother, grandparent, etc.", + "isRequired": true, + "visible": false, + "visibleIf": "!{formOneRequired}" + }, + { + "type": "text", + "name": "childCurrentlyLivingWith", + "title": "Who is the child currently living with?", + "description": "You can use the name of the person or their relationship to the child.", + "isRequired": true, + "visible": false, + "visibleIf": "!{formOneRequired}" + } + ] + } + ], + "showQuestionNumbers": "off", + "requiredText": "" +} \ No newline at end of file diff --git a/web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/ChildrenDetailsGa.vue b/web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/ChildrenDetailsGa.vue new file mode 100644 index 000000000..612e01d13 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/ChildrenDetailsGa.vue @@ -0,0 +1,324 @@ + + + + + diff --git a/web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/ChildrenSurvey.vue b/web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/ChildrenSurvey.vue new file mode 100644 index 000000000..3fd685f22 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/ChildrenSurvey.vue @@ -0,0 +1,136 @@ + + + diff --git a/web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/forms/survey-childInfo.json b/web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/forms/survey-childInfo.json new file mode 100644 index 000000000..0cc945d80 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/childrenDetailsGa/forms/survey-childInfo.json @@ -0,0 +1,53 @@ +{ + "title": "Child(ren) Information", + "pages": [ + { + "name": "Child(ren) Information", + "elements": [ + { + "type": "personname", + "name": "childName", + "title": "What is the name of the child?", + "isRequired": true, + "defaultSubstitution": "{ChildName}" + }, + { + "type": "text", + "name": "childDateOfBirth", + "title": "What is the child's date of birth?", + "isRequired": true, + "inputType": "date" + }, + { + "type": "comment", + "name": "relationToChild", + "title": "What is your relationship to the child?", + "description": "Use whatever wording best describes it, for example, father, step-mother, grandparent, etc.", + "isRequired": true, + "visible": false, + "visibleIf": "!{formOneRequired}" + }, + { + "type": "comment", + "name": "childRelationToOtherParty", + "title": "What is the other party's relationship to the child?", + "description": "Use whatever wording best describes it, for example, father, step-mother, grandparent, etc.", + "isRequired": true, + "visible": false, + "visibleIf": "!{formOneRequired}" + }, + { + "type": "text", + "name": "childCurrentlyLivingWith", + "title": "Who is the child currently living with?", + "description": "You can use the name of the person or their relationship to the child.", + "isRequired": true, + "visible": false, + "visibleIf": "!{formOneRequired}" + } + ] + } + ], + "showQuestionNumbers": "off", + "requiredText": "" +} \ No newline at end of file diff --git a/web/src/components/steps/guardianshipAffidavit/forms/about-affiant-ga.json b/web/src/components/steps/guardianshipAffidavit/forms/about-affiant-ga.json new file mode 100644 index 000000000..d89ed4c35 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/forms/about-affiant-ga.json @@ -0,0 +1,56 @@ +{ + "pages": [ + { + "name": "About the Affiant", + "description": "An affiant is a person who makes an `affidavit`. An affidavit must be written from the writer’s point of view, using 'I' statements.

An affidavit starts with an opening paragraph that states the person’s name, their occupation and address.", + "elements": [ + { + "type": "personname", + "name": "ApplicantName", + "title": "What is your full name?", + "description": "This is the name of the person whose affidavit it is. If you are helping someone use this service, use their name.", + "isRequired": true, + "defaultSubstitution": "(Applicant Name)", + "descFirstName": "First Name is also known as Given Name", + "descMiddleName": "If you have more than one Middle Name, write them all in this box with spaces separating your Middle Names", + "descLastName": "Last Name is also known as Family Name or Surname" + }, + { + "type": "text", + "name": "ApplicantOccupation", + "isRequired": true, + "title": "What is your job or profession?", + "description": "For example: Nurse, Homemaker, Carpenter, Accountant, etc.\t" + }, + { + "type": "checkbox", + "name": "inCareOf", + "title": "What is your address?", + "description": "The address you include here will be available to the parties and the court. You do not need to use the address where you live, especially if you have any safety concerns about someone knowing your address, but you need to be clear if it is not.

If you are a party to the case, you can include your address for service. If you are not a party, you may want to use your work address. For example, if you are a child’s teacher making the affidavit, you may choose to use the school address instead of your home address.

If you do not live at the address for service, check the box for “care of”.", + "choices": [ + "Care of" + ] + }, + { + "type": "address", + "name": "ApplicantAddress", + "title": "", + "titleLocation": "hidden", + "isRequired": true, + "referLabel": "Applicant's Address", + "validators": [ + { + "type": "expression", + "text": "Please Fill in all Required Fields.", + "expression": "{ApplicantAddress.street} notempty and {ApplicantAddress.postcode} notempty and {ApplicantAddress.city} notempty" + } + ] + } + + ], + "title": "About the Affiant" + } + ], + "showQuestionNumbers": "off", + "requiredText": "" +} \ No newline at end of file diff --git a/web/src/components/steps/guardianshipAffidavit/forms/background-civil-court-proceedings.json b/web/src/components/steps/guardianshipAffidavit/forms/background-civil-court-proceedings.json new file mode 100644 index 000000000..35fe29477 --- /dev/null +++ b/web/src/components/steps/guardianshipAffidavit/forms/background-civil-court-proceedings.json @@ -0,0 +1,62 @@ +{ + "title": "Your story", + "pages": [ + { + "name": "Your story", + "description": "An affidavit is written in the first person (from the writer’s point of view, using “I”) and must include facts – what you saw, heard, did and said – and events that are relevant to the application. It is your story.
If certain facts are not within your personal knowledge, you can still include them, but you must identify the source of your information.", + "elements": [ + { + "type": "helptext", + "name": "FAQLegalAdvice1", + "title": "How do I identify the source of my information?", + "titleLocation": "hidden", + "body": "If certain facts are not within your personal knowledge, you must identify the source of your information and that you believe the information is true. For example, “On November 29th, 2019, Mrs. Johnson told me Jack was not at school and I believe this to be true.”" + }, + { + "type": "html", + "name": "storyHeading", + "html": "
If you refer to documents, for example a report card, a letter or email, or a photograph, you must talk about it in your story and state that it is attached as an exhibit. When you bring your affidavit to be sworn or affirmed, you must also bring all your exhibits. Each exhibit will be marked by the commissioner for taking affidavits using a certificate (usually a stamp) with wording like this: “This is Exhibit [A, B, C…] referred to in the affidavit of [name] sworn (or affirmed) before me on [date] at [location]” and is signed by the commissioner for taking affidavits.

Exhibits must not include an intimate image of any person. Instead a written description of the intimate image may be included. A judge will determine whether to allow the image itself to be introduced. For more information about what an intimate image may include, please see the Provincial Court’s FAM13 Practice Direction | Affidavits and Exhibits for use in Family Proceedings.

Exhibits must be in a printed document format. Exhibits may not be provided on a USB stick or other electronic data storage device including a video or audio file.
" + }, + { + "type": "helptext", + "name": "FAQLegalAdvice2", + "title": "How do I reference and attach an exhibit?", + "titleLocation": "hidden", + "body": "Exhibits are documents that you attach to your affidavit, usually to support a fact you talk about in the affidavit. For example, if you say that you received an email from your child’s teacher, you might want to attach a copy of the email to show that you did receive it.

When you attach an exhibit, you must introduce it in your affidavit. To introduce it, you must explain what the document is, reference the document, and say that you are attaching it as an exhibit.

Each exhibit is identified with a letter, Exhibit “A”, “B”, “C” and so on. For example:
8. On December 2nd, 2022, I received an email from Jack’s teacher, Mrs. Johnson, about his behaviour in class. The email is attached to this affidavit as Exhibit A." + }, + { + "type": "helptext", + "name": "FAQLegalAdvice3", + "title": "Where can I get more information about how to write an affidavit, including what information to put in my affidavit?", + "titleLocation": "hidden", + "body": "For more information about how to write an affidavit, or what information should be included in an affidavit, refer to the following resources or talk to a lawyer: