diff --git a/scripts/create-templates.sh b/scripts/create-templates.sh new file mode 100644 index 000000000..85cb13f72 --- /dev/null +++ b/scripts/create-templates.sh @@ -0,0 +1,14 @@ +#brew install yq +flowName="${1:-laDigitalAssister}" +flowIndex="${2:-1}" +templates=`ls -1 src/main/resources/templates/laDigitalAssister/*.html | cut -d'/' -f6-` +screens=( $(yq '[select(document_index == '"$flowIndex"') | .flow.*.nextScreens[0].name] | flatten' src/main/resources/flows-config.yaml) ) +screenNames=( $( printf '%s\n' ${screens[@]} | egrep -v '^(---|-|null|\[*\])' ) ) +for i in "${!screenNames[@]}"; do + if grep -q "${screenNames[$i]}.html" <<< "${templates[*]}"; then + echo "found ${screenNames[$i]} in templates" + else + echo "${screenNames[$i]} not in templates; creating one" + cat scripts/scaffold.html >> "src/main/resources/templates/${flowName}/${screenNames[$i]}.html" + fi +done diff --git a/scripts/scaffold.html b/scripts/scaffold.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/scripts/scaffold.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/flows-config.yaml b/src/main/resources/flows-config.yaml index 4a9f8b78f..3cfb0a154 100644 --- a/src/main/resources/flows-config.yaml +++ b/src/main/resources/flows-config.yaml @@ -85,6 +85,96 @@ flow: nextScreens: - name: householdInfo householdInfo: + nextScreens: + - name: ssnForm + ssnForm: + nextScreens: + - name: ssnFaqs + ssnFaqs: + nextScreens: + - name: specialSituations + specialSituations: + nextScreens: + - name: school + school: + nextScreens: + - name: pregnancy + pregnancy: + nextScreens: + - name: outOfStateBenefits + outOfStateBenefits: + nextScreens: + - name: seasonalFarmWorker + seasonFarmWorker: + nextScreens: + - name: usCitizen + usCitizen: + nextScreens: + - name: householdCount + householdCount: + nextScreens: + - name: usVeteran + usVeteran: + nextScreens: + - name: fosterSystem + fosterSystem: + nextScreens: + - name: fosterCareUntilAdult + fosterCareUntilAdult: + nextScreens: + - name: rentedRoom + rentedRoom: + nextScreens: + - name: payForMeals + payForMeals: + nextScreens: + - name: minorNotInSchoolNotUpToDate + minorNotInSchoolNotUpToDate: + nextScreens: + - name: immunizationSchoolProof + immunizationSchoolProof: + nextScreens: + - name: requestChildcareHelp + requestChildcareHelp: + nextScreens: + - name: childCareWho + childCareWho: + nextScreens: + - name: childrenWithParentOutsideHome + childrenWithParentOutsideHome: + nextScreens: + - name: additionalParent + additionalParent: + nextScreens: + - name: custodyOfChild + custodyOfChild: + nextScreens: + - name: whoCustody + whoCustody: + nextScreens: + - name: parentsList + parentsList: + nextScreens: + - name: sensitiveQuestions + sensitiveQuestions: + nextScreens: + - name: personalSituations + personalSituations: + nextScreens: + - name: whichPersonalSituations + whichPersonalSituations: + nextScreens: + - name: moreInfoPersonalSituations + moreInfoPersonalSituations: + nextScreens: + - name: victimOfDomesticViolence + victimOfDomesticViolence: + nextScreens: + - name: sensitiveQuestionsCriminalJustice + sensitiveQuestionsCriminalJustice: + nextScreens: + - name: criminalJusticeSituations + criminalJusticeSituations: nextScreens: null subflows: diff --git a/src/main/resources/templates/laDigitalAssister/additionalParent.html b/src/main/resources/templates/laDigitalAssister/additionalParent.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/additionalParent.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/childCareWho.html b/src/main/resources/templates/laDigitalAssister/childCareWho.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/childCareWho.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/childrenWithParentOutsideHome.html b/src/main/resources/templates/laDigitalAssister/childrenWithParentOutsideHome.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/childrenWithParentOutsideHome.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/criminalJusticeSituations.html b/src/main/resources/templates/laDigitalAssister/criminalJusticeSituations.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/criminalJusticeSituations.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/custodyOfChild.html b/src/main/resources/templates/laDigitalAssister/custodyOfChild.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/custodyOfChild.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/fosterCareUntilAdult.html b/src/main/resources/templates/laDigitalAssister/fosterCareUntilAdult.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/fosterCareUntilAdult.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/fosterSystem.html b/src/main/resources/templates/laDigitalAssister/fosterSystem.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/fosterSystem.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/householdCount.html b/src/main/resources/templates/laDigitalAssister/householdCount.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/householdCount.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/immunizationSchoolProof.html b/src/main/resources/templates/laDigitalAssister/immunizationSchoolProof.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/immunizationSchoolProof.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/minorNotInSchoolNotUpToDate.html b/src/main/resources/templates/laDigitalAssister/minorNotInSchoolNotUpToDate.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/minorNotInSchoolNotUpToDate.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/moreInfoPersonalSituations.html b/src/main/resources/templates/laDigitalAssister/moreInfoPersonalSituations.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/moreInfoPersonalSituations.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/outOfStateBenefits.html b/src/main/resources/templates/laDigitalAssister/outOfStateBenefits.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/outOfStateBenefits.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/parentsList.html b/src/main/resources/templates/laDigitalAssister/parentsList.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/parentsList.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/payForMeals.html b/src/main/resources/templates/laDigitalAssister/payForMeals.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/payForMeals.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/personalSituations.html b/src/main/resources/templates/laDigitalAssister/personalSituations.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/personalSituations.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/pregnancy.html b/src/main/resources/templates/laDigitalAssister/pregnancy.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/pregnancy.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/rentedRoom.html b/src/main/resources/templates/laDigitalAssister/rentedRoom.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/rentedRoom.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/requestChildcareHelp.html b/src/main/resources/templates/laDigitalAssister/requestChildcareHelp.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/requestChildcareHelp.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/school.html b/src/main/resources/templates/laDigitalAssister/school.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/school.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/seasonalFarmWorker.html b/src/main/resources/templates/laDigitalAssister/seasonalFarmWorker.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/seasonalFarmWorker.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/sensitiveQuestions.html b/src/main/resources/templates/laDigitalAssister/sensitiveQuestions.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/sensitiveQuestions.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/sensitiveQuestionsCriminalJustice.html b/src/main/resources/templates/laDigitalAssister/sensitiveQuestionsCriminalJustice.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/sensitiveQuestionsCriminalJustice.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/specialSituations.html b/src/main/resources/templates/laDigitalAssister/specialSituations.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/specialSituations.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/ssnFaqs.html b/src/main/resources/templates/laDigitalAssister/ssnFaqs.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/ssnFaqs.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/ssnForm.html b/src/main/resources/templates/laDigitalAssister/ssnForm.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/ssnForm.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/usCitizen.html b/src/main/resources/templates/laDigitalAssister/usCitizen.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/usCitizen.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/usVeteran.html b/src/main/resources/templates/laDigitalAssister/usVeteran.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/usVeteran.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/victimOfDomesticViolence.html b/src/main/resources/templates/laDigitalAssister/victimOfDomesticViolence.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/victimOfDomesticViolence.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/whichPersonalSituations.html b/src/main/resources/templates/laDigitalAssister/whichPersonalSituations.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/whichPersonalSituations.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/whoCustody.html b/src/main/resources/templates/laDigitalAssister/whoCustody.html new file mode 100644 index 000000000..066329814 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/whoCustody.html @@ -0,0 +1,29 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file