Skip to content

Commit

Permalink
Adding veteran who screen
Browse files Browse the repository at this point in the history
  • Loading branch information
sree-cfa committed Oct 12, 2023
1 parent 9992167 commit 85788b4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 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 veteranInd;

private String veterans;

private String homelessInd;

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

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

@Component
public class IsVeteran extends BasicCondition {
@Override
public Boolean run(Submission submission) {
return run(submission, "veteranInd", "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 @@ -141,6 +141,8 @@ flow:
householdVeteran:
nextScreens:
- name: householdVeteranWho
condition: IsVeteran
- name: householdFoster
householdVeteranWho:
nextScreens:
- name: householdFoster
Expand Down
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=#{veteran-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 :: medicalInOtherState}"></th:block>
<th:block
th:replace="~{'fragments/cardHeader' :: cardHeader(header=#{veteran-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='veterans')}">
</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 85788b4

Please sign in to comment.