Skip to content

Commit

Permalink
Adding foster aged out screens
Browse files Browse the repository at this point in the history
  • Loading branch information
sree-cfa committed Oct 12, 2023
1 parent b59aa7b commit 26c3d25
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ public class LaDigitalAssister extends FlowInputs {

private String fosters;

private String fosterAgedOutInd;

private String fostersAgedOut;

private String veteranInd;

private String veterans;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.ladocuploader.app.submission.conditions;

import formflow.library.data.Submission;
import org.springframework.stereotype.Component;

@Component
public class FostersAgedOut extends BasicCondition {

@Override
public Boolean run(Submission submission) {
return run(submission, "fosterAgedOutInd", "true");
}
}
2 changes: 2 additions & 0 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ flow:
householdFosterAgedOut:
nextScreens:
- name: householdFosterAgedOutWho
condition: FostersAgedOut
- name: householdRoomRental
householdFosterAgedOutWho:
nextScreens:
- name: householdHomeless
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,16 @@ veteran-who.header=Who is a U.S. veteran?
# Foster
foster.title=Foster
foster.header=Is anyone a foster child or foster adult?

foster-who.title=Foster who
foster-who.header=Who is a foster child or foster adult?

# Foster aged out
foster-aged-out.title=Foster aged out
foster-aged-out.header=Was anyone in foster care until they turned 18?
foster-aged-out-who.title=Foster aged out who
foster-aged-out-who.header=Who was in foster care until they turned 18?


# Homelessness
homeless.title=Homeless
homeless.header=Is anyone in your household currently experiencing homelessness?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}">
<head th:replace="~{fragments/head :: head(title='Scaffold')}"></head>
<head th:replace="~{fragments/head :: head(title=#{foster-aged-out.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">
<!-- <th:block-->
<!-- th:replace="~{'fragments/cardHeader' :: cardHeader(header=#{}, subtext=#{})}"/>-->
<th:block th:replace="~{fragments/icons :: householdBlue}"></th:block>
<th:block
th:replace="~{'fragments/cardHeader' :: cardHeader(header=#{foster-aged-out.header})}"/>
<th:block th:replace="~{'fragments/form' :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">

</div>
<div class="form-card__footer">

<th:block th:replace="fragments/inputs/yesOrNo :: yesOrNo(
inputName='fosterAgedOutInd',
ariaDescribe='header')"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}" />
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}">
<head th:replace="~{fragments/head :: head(title='Scaffold')}"></head>
<head th:replace="~{fragments/head :: head(title=#{foster-aged-out-who.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">
<!-- <th:block-->
<!-- th:replace="~{'fragments/cardHeader' :: cardHeader(header=#{}, subtext=#{})}"/>-->
<th:block th:replace="~{fragments/icons :: householdBlue}"></th:block>
<th:block
th:replace="~{'fragments/cardHeader' :: cardHeader(header=#{foster-aged-out-who.header})}"/>
<th:block th:replace="~{'fragments/form' :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">

<th:block th:replace="~{'fragments/inputs/householdCheckboxFieldset' ::
householdCheckboxFieldset(inputName='fostersAgedOut')}">
</th:block>
</div>
<div class="form-card__footer">

<div class="form-card__footer">
<th:block th:replace="fragments/inputs/submitButton :: submitButton(
text=#{general.inputs.continue})" />
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}" />
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>

0 comments on commit 26c3d25

Please sign in to comment.