Skip to content

Commit

Permalink
Add ohep thank you screen
Browse files Browse the repository at this point in the history
  • Loading branch information
spokenbird committed Jun 5, 2024
1 parent ef71b8c commit 97e5466
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,24 +273,27 @@ flow:
nextScreens:
- name: householdMoneyOnHand
condition: IsApplyingForSnap
- name: ohepThankYou
ohepThankYou:
nextScreens:
- name: householdMedicalExpenses
householdMoneyOnHand:
onPostAction: MaybeClearMoneyOnHandAmount
beforeSaveAction: CheckExpeditedSnapEligibility
nextScreens:
- name: householdMoneyOnHandAmount
condition: HasMoreThan100OnHand
- name: householdMedicalExpenses
- name: ohepThankYou
householdMoneyOnHandAmount:
beforeSaveAction: CheckExpeditedSnapEligibility
nextScreens:
- name: householdMoneyOnHandVsExpenses
condition: HasMoreExpensesThanMoney
- name: householdMedicalExpenses
- name: ohepThankYou
householdMoneyOnHandVsExpenses:
beforeSaveAction: CheckExpeditedSnapEligibility
nextScreens:
- name: householdMedicalExpenses
- name: ohepThankYou
householdMedicalExpenses:
beforeSaveAction: ClearUnusedMedicalExpensesFields
nextScreens:
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,12 @@ ohep-heating.subheader=We use these to send money to your heating company if you
ohep-heating.q1=Your heating company's name
ohep-heating.q2=Your heating account number

ohep-thank-you.title=Thank you, the Office of Home Energy Programs may contact you
ohep-thank-you.header=Thank you
ohep-thank-you.content1=The Office of Home Energy Programs (OHEP) <b>may contact you by mail</b> to ask for additional information.
ohep-thank-you.content2=However, if you are eligible and we have all the information needed we'll send money to your utility companies.


medical-expenses.title=Medical expenses
medical-expenses.header=For anyone in your household 60 or older or who is getting disability benefits, what medical expenses do you all pay for?
medical-expenses.subheader=Check all that apply.
Expand Down
12 changes: 12 additions & 0 deletions src/main/resources/static/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -522,4 +522,16 @@ li li {

.form-group--error fieldset .text--error {
margin-top: 0;
}

.text--align-center {
text-align: center;
}

.text--align-center .form-card__header {
margin-bottom: 3rem;
}

.text--align-center img {
margin-bottom: 3rem;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions src/main/resources/templates/mdBenefitsFlow/ohepThankYou.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title=#{ohep-thank-you.title})}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<div class="center text--align-center">
<th:block
th:replace="~{fragments/cardHeader :: cardHeader(header=#{ohep-thank-you.header})}"/>
<img src="/assets/images/ohep-logo.png" alt="Logo for the Office of Home Energy Programs" class="ohep-logo" style="height: 33%; width: 33%;">
</div>
<div class="form-card__content">
<p th:utext="#{ohep-thank-you.content1}"></p>
<p th:text="#{ohep-thank-you.content2}"></p>
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/continueButton :: continue}"/>
</div>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>

0 comments on commit 97e5466

Please sign in to comment.