Skip to content

Commit

Permalink
Adding citizenship number screen
Browse files Browse the repository at this point in the history
  • Loading branch information
sree-cfa committed Oct 3, 2023
1 parent 0d947eb commit d8b8bb9
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,7 @@ public class LaDigitalAssister extends FlowInputs {

private String nonCitizens;

private String citizenshipNumber;

}

15 changes: 15 additions & 0 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,18 @@ citizenship.l3=Applying for or getting SNAP won't affect the immigration status
# Non-citizen
non-citizen.title=Non-citizen
non-citizen.header=Who is not a U.S. Citizen?

# Citizenship number
citizenship-number.title=Citizenship number
citizenship-number.header=How many people in your household are one of the following?
citizenship-number.subheader=Count everyone on your application who has one of the following statuses. They are all eligible for SNAP benefits.
citizenship-number.status1=<b>U.S. citizen</b>
citizenship-number.status2=<b>Lawful Permanent Resident/Green Card holder</b> for any length of time
citizenship-number.status3=<b>T-Visa or U-Visa</b> holder or applicant
citizenship-number.status4=<b>Asylee or refugee</b>
citizenship-number.status5=<b>Violence Against Women Act (VAWA)</b> relief applicant
citizenship-number.status6=<b>Parolee</b> for at least 1 year or <b>Ukrainian</b> parolee for any length of time
citizenship-number.status7=<b>Afghan</b> entering with Special Immigrant Visa (SIV), Special Immigrant (SQ/SI) Parole, or other forms of humanitarian parole
citizenship-number.status8=<b>Cuban or Haitian</b> entrant
citizenship-number.status9=<b>Hmong/Laotian or American Indian</b> born in Canada
citizenship-number.people={0} people
Original file line number Diff line number Diff line change
@@ -1,29 +1,55 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}">
<head th:replace="~{fragments/head :: head(title='Scaffold')}"></head>
<head th:replace="~{fragments/head :: head(title=#{citizenship-number.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 :: passport}"></th:block>
<th:block
th:replace="~{'fragments/cardHeader' :: cardHeader(header=#{citizenship-number.header}, subtext=#{citizenship-number.subheader})}"/>
<th:block th:replace="~{'fragments/form' :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">

<th:block th:ref="formContent">
<ul class="list--bulleted spacing-above-0 spacing-below-60">
<li th:utext="#{citizenship-number.status1}"></li>
<li th:utext="#{citizenship-number.status2}"></li>
<li th:utext="#{citizenship-number.status3}"></li>
<li th:utext="#{citizenship-number.status4}"></li>
<li th:utext="#{citizenship-number.status5}"></li>
<li th:utext="#{citizenship-number.status6}"></li>
<li th:utext="#{citizenship-number.status7}"></li>
<li th:utext="#{citizenship-number.status8}"></li>
<li th:utext="#{citizenship-number.status9}"></li>
</ul>
<th:block th:replace="~{'fragments/inputs/select' ::
select(
inputName='citizenshipNumber',
ariaLabel='header',
content=~{::selectContent})}">
<th:block th:ref="selectContent">
<th:block th:each="i : ${#numbers.sequence(0, inputData.household.size()+1)}"
class="spacing-below-15">
<th:block
th:replace="~{fragments/inputs/selectOption :: selectOption(value=${i}, optionText=#{citizenship-number.people(${i})})}"/>
</th:block>
</th:block>
</th:block>
</th:block>
</div>
<div class="form-card__footer">

<th:block th:replace="'fragments/continueButton' :: 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 d8b8bb9

Please sign in to comment.