-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This also tweaks the county setup to include the value of what the enum represents, versus the name of the enum, which would be harder to look up later. Starts to outline the redirectToMDThink page, but that's a wip.
- Loading branch information
Showing
19 changed files
with
387 additions
and
150 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/main/java/org/mdbenefits/app/data/enums/ApplicationDescriptionType.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,22 @@ | ||
package org.mdbenefits.app.data.enums; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum ApplicationDescriptionType { | ||
|
||
NEED_HELP_IN_OTHER_LANGUAGE("I need help in a language that isn’t English ((Español, 中文, Tiếng Việt)", "select-app.help-in-other-language"), | ||
COLLEGE_STUDENT_IN_APP("I am a college student or have a student who will be on my aplication", "select-app.college-student-in-home"), | ||
VETERAN_IN_APP("I am a veteran or have a veteran who will be on my application", "select-app.veteran-in-app"), | ||
HELP_WITH_HEALTHCARE("I am applying for help with healthcare", "select-app.help-with-healthcare"), | ||
AUTHORIZED_REP_FOR_SOMEONE("I am an authorized representative applying for someone else", "select-app.authorized-rep"), | ||
OTHER("None of these are true for me", "select-app.other"); | ||
|
||
private final String value; | ||
private final String labelSrc; | ||
|
||
ApplicationDescriptionType(String value, String labelSrc) { | ||
this.value = value; | ||
this.labelSrc = labelSrc; | ||
} | ||
} |
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
30 changes: 30 additions & 0 deletions
30
src/main/java/org/mdbenefits/app/data/enums/HelpNeededType.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,30 @@ | ||
package org.mdbenefits.app.data.enums; | ||
|
||
import static org.mdbenefits.app.data.enums.ProgramType.SNAP; | ||
import static org.mdbenefits.app.data.enums.ProgramType.TCA; | ||
import static org.mdbenefits.app.data.enums.ProgramType.OHEP; | ||
import static org.mdbenefits.app.data.enums.ProgramType.TDAP; | ||
import static org.mdbenefits.app.data.enums.ProgramType.OTHER; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum HelpNeededType { | ||
|
||
FOOD("Help with food", "help-needed.food", SNAP), | ||
CHILDREN("Help with money for children", "help-needed.children", TCA), | ||
UTILITIES("Help with utilities", "help-needed.utilites", OHEP), | ||
DISABILITY("Help for a disability", "help-needed.disability", TDAP), | ||
NOT_SURE("I'm not sure", "help-needed.not-sure", OTHER); | ||
|
||
private final String value; | ||
private final String labelSrc; | ||
private final ProgramType programType; | ||
|
||
HelpNeededType(String value, String labelSrc, ProgramType programType) { | ||
this.value = value; | ||
this.labelSrc = labelSrc; | ||
this.programType = programType; | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/org/mdbenefits/app/data/enums/ProgramType.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,23 @@ | ||
package org.mdbenefits.app.data.enums; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum ProgramType { | ||
|
||
SNAP("choose-programs.snap", "choose-programs.snap.short-desc", "choose-programs.snap.desc"), | ||
TCA("choose-programs.tca","choose-programs.tca.short-desc","choose-programs.tca.desc"), | ||
OHEP("choose-programs.ohep", "choose-programs.ohep.short-desc", "choose-programs.ohep.desc"), | ||
TDAP("choose-programs.tdap", "choose-programs.tdap.short-desc", "choose-programs.tdap.desc"), | ||
OTHER("choose-programs.other", "", "choose-programs.other.desc"); | ||
|
||
private final String nameSrc; | ||
private final String shortDescSrc; | ||
private final String descSrc; | ||
|
||
ProgramType(String nameSrc, String shortDescSrc, String descSrc) { | ||
this.nameSrc = nameSrc; | ||
this.shortDescSrc = shortDescSrc; | ||
this.descSrc = descSrc; | ||
} | ||
} |
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
20 changes: 0 additions & 20 deletions
20
src/main/java/org/mdbenefits/app/submission/conditions/ProgramsIncludeKscpOrFitap.java
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -464,3 +464,7 @@ button.button.button--secondary{ | |
.main-footer { | ||
position: static; | ||
} | ||
|
||
.form-question { | ||
font-weight: unset | ||
} |
54 changes: 0 additions & 54 deletions
54
src/main/resources/templates/fragments/inputs/checkboxMod.html
This file was deleted.
Oops, something went wrong.
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
23 changes: 0 additions & 23 deletions
23
src/main/resources/templates/mdBenefitsFlow/applicantNotice.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.