generated from codeforamerica/form-flow-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Lauren Kemperman <lkemperman@codeforamerica.org>
- Loading branch information
1 parent
96b9202
commit 1b5edbf
Showing
14 changed files
with
158 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/org/ladocuploader/app/submission/conditions/GoingToSchool.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GoingToSchool extends BasicCondition { | ||
|
||
@Override | ||
public Boolean run(Submission submission) { | ||
return run(submission, "schoolInd", "true"); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/org/ladocuploader/app/submission/conditions/IsPregnant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 IsPregnant extends BasicCondition { | ||
|
||
@Override | ||
public Boolean run(Submission submission) { | ||
return run(submission, "pregnancyInd", "true"); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/org/ladocuploader/app/submission/conditions/OutOfStateBenefits.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 OutOfStateBenefits extends BasicCondition { | ||
|
||
@Override | ||
public Boolean run(Submission submission) { | ||
return run(submission, "outOfStateBenefitsInd", "true"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 7 additions & 10 deletions
17
src/main/resources/templates/laDigitalAssister/householdBenefits.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html th:lang="${#locale.language}"> | ||
<head th:replace="~{fragments/head :: head(title='Scaffold')}"></head> | ||
<head th:replace="~{fragments/head :: head(title=#{out-of-state-benefits.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=#{out-of-state-benefits.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"> | ||
|
||
</div> | ||
<th:block th:replace="~{fragments/inputs/yesOrNo :: yesOrNo( | ||
inputName='outOfStateBenefitsInd', | ||
ariaDescribe='header')}"/> | ||
</th:block> | ||
</th:block> | ||
</main> | ||
</div> | ||
</section> | ||
</div> | ||
<th:block th:replace="~{fragments/footer :: footer}" /> | ||
<th:block th:replace="~{fragments/footer :: footer}"/> | ||
</body> | ||
</html> |
14 changes: 8 additions & 6 deletions
14
src/main/resources/templates/laDigitalAssister/householdBenefitsWho.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=#{out-of-state-benefits-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=#{out-of-state-benefits-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='outOfStateBenefitsRecipients')}"> | ||
</th:block> | ||
</div> | ||
<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> |
17 changes: 7 additions & 10 deletions
17
src/main/resources/templates/laDigitalAssister/householdPregnancy.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html th:lang="${#locale.language}"> | ||
<head th:replace="~{fragments/head :: head(title='Scaffold')}"></head> | ||
<head th:replace="~{fragments/head :: head(title=#{pregnancy.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 :: pregnant}"></th:block> | ||
<th:block th:replace="~{'fragments/cardHeader' :: cardHeader(header=#{pregnancy.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"> | ||
|
||
</div> | ||
<th:block th:replace="~{fragments/inputs/yesOrNo :: yesOrNo( | ||
inputName='pregnancyInd', | ||
ariaDescribe='header')}"/> | ||
</th:block> | ||
</th:block> | ||
</main> | ||
</div> | ||
</section> | ||
</div> | ||
<th:block th:replace="~{fragments/footer :: footer}" /> | ||
<th:block th:replace="~{fragments/footer :: footer}"/> | ||
</body> | ||
</html> |
14 changes: 8 additions & 6 deletions
14
src/main/resources/templates/laDigitalAssister/householdPregnancyWho.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=#{pregnancy-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 :: pregnant}"></th:block> | ||
<th:block th:replace="~{'fragments/cardHeader' :: cardHeader(header=#{pregnancy-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='pregnancies')}"> | ||
</th:block> | ||
</div> | ||
<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> |
16 changes: 12 additions & 4 deletions
16
src/main/resources/templates/laDigitalAssister/householdSchool.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
src/main/resources/templates/laDigitalAssister/householdSchoolWho.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=#{school-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 :: school}"></th:block> | ||
<th:block th:replace="~{'fragments/cardHeader' :: cardHeader(header=#{school-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='students')}"> | ||
</th:block> | ||
</div> | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.