Skip to content

Commit

Permalink
This fixes the last commit, which didn't include all the files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bseeger committed Feb 2, 2024
1 parent 7299b21 commit 2f43917
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
public enum ApplicantObjective {

NEED_HELP_IN_OTHER_LANGUAGE("select-app.help-in-other-language"),
RE_CERTIFYING_BENEFITS("select-app.re-certifying-benefits"),
COLLEGE_STUDENT_IN_APP("select-app.college-student-in-home"),
VETERAN_IN_APP("select-app.veteran-in-app"),
HELP_WITH_HEALTHCARE("select-app.help-with-healthcare"),
Expand Down
9 changes: 4 additions & 5 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ index.header=Welcome to the <em> new </em> Maryland Benefits application experie
index.description=We're working to make applying for benefits easier. Thanks for your patience while we build the new site. You can still apply on the original site using the link below.
index.apply-now=Apply Now <i class="button__icon icon-arrow_forward"></i>
index.apply-now.link=/flow/mdBenefitsFlow/county?lang=en
index.apply-on-mdthink=Apply for benefits on <a target="_blank" rel="noreferrer noopener" href="https://mymdthink.maryland.gov/home/#/"/>myMDTHINK</a>.</p>
index.apply-on-mdthink=<a target="_blank" rel="noreferrer noopener" href="https://mymdthink.maryland.gov/home/#/"/>Apply for benefits on myMDTHINK</a></p>

footer.this-benefits-application-is=This benefits application is a service built by Code for America in partnership with the state of Maryland, on behalf of the people of Maryland.
footer.faq=Frequently Asked Questions (FAQ)
Expand Down Expand Up @@ -251,6 +251,7 @@ select-app.title=Select application
select-app.header=Which of these are true for you?
select-app.subheader=We want to make sure we send you to the best application for you.
select-app.help-in-other-language=I need help in a language that isn't English (Espa\u00F1ol, \u4e2d\u6587, Ti\u1EBFng Vi\u1EC7t)
select-app.re-certifying-benefits=I need to re-certify benefits
select-app.college-student-in-home=I am a college student or have a student who will be on my aplication
select-app.veteran-in-app=I am a veteran or have a veteran who will be on my application
select-app.help-with-healthcare=I am applying for help with healthcare
Expand All @@ -268,9 +269,7 @@ help-needed.not-sure=I'm not sure

# MD Think redirect
redirect.mdthink.title=myMDTHINK Redirect
redirect.mdthink.header=Please use the link below to start your application.
redirect.mdthink.subheader=
redirect.mdthink.linktext=Apply for benefits on myMDTHINK
redirect.mdthink.header=Please use the link below to start your application


# Choose programs
Expand All @@ -282,7 +281,7 @@ choose-programs.snap.short-desc=Get help with food
choose-programs.snap.desc=<br>Helps people pay for groceries. Used to be known as food stamps. You get money added to an EBT card and can use it for food. <br><br>How much you can get depends on the number of people in your household and how much money you make.
choose-programs.tca=Temporary Cash Assistance (TCA)
choose-programs.tca.short-desc=Get help with money for children
choose-programs.tca.desc=<br>Gives cash and helps to pay for childcare or things you need to go to work. It's for individuals and families with children. <br><br>Getting benefits depends on you or your family member's age, income, or pregnancy status. This is Maryland's version of the federal program Temporary Assistance to Needy Family's (TANF)
choose-programs.tca.desc=<br>Gives cash and helps to pay for childcare or things you need to go to work. It's for individuals and families with children. <br><br>Getting benefits depends on you or your family member's age, income, or pregnancy status. This is Maryland's version of the federal program Temporary Assistance to Needy Families (TANF)
choose-programs.ohep=Office of Home Energy Programs (OHEP)
choose-programs.ohep.short-desc=Office of Home Energy Programs (OHEP)
choose-programs.ohep.desc=<br>Helps with heating, electric and gas bills. Maryland will pay the company that sends you bills directly. How much they pay depends on the number of people in your household and how much money you and your household make.
Expand Down
8 changes: 6 additions & 2 deletions src/main/resources/static/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ button.button.button--secondary{
position: static;
}

.form-question {
font-weight: unset
.font-weight--unset {
font-weight: unset;
}

.font-weight--normal {
font-weight: normal;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<th:block
th:fragment="checkboxFieldset"
th:with="
hasHelpText=${!#strings.isEmpty(fieldsetHelpText)},
hasLabel=${!#strings.isEmpty(label)},
hasAriaLabel=${!#strings.isEmpty(ariaLabel)},
hasError=${
errorMessages != null &&
errorMessages.get(inputName) != null &&
(#arrays.length(errorMessages.get(inputName)) > 0) }"
th:assert="
${!#strings.isEmpty(inputName)},
${hasLabel || hasAriaLabel},
${content != null}">
<div th:class="'form-group' + ${(hasError ? ' form-group--error' : '')}">
<fieldset th:attr="
aria-describedby=${hasHelpText ? inputName + '-help-text' : ''},
aria-labelledby=${hasAriaLabel ? ariaLabel : ''}">
<legend class="form-question font-weight--unset"
th:if="${hasLabel}"
th:id="${inputName + '-legend'}"
th:inline="text">
[[${label}]]
<p class="text--help spacing-below-0 text--normal"
th:if="${hasHelpText}"
th:id="${inputName + '-help-text'}"
th:text="${fieldsetHelpText}"></p>
</legend>
<input type="hidden" th:id="${inputName} + 'Hidden'" th:name="${inputName} + '[]'" value="">
<th:block th:replace="${content}"/>
<th:block
th:replace="~{fragments/inputError :: validationError(inputName=${inputName})}"></th:block>
</fieldset>
</div>
</th:block>
35 changes: 35 additions & 0 deletions src/main/resources/templates/fragments/inputs/checkboxInSet.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<th:block
th:fragment="checkboxInSet"
th:with="
hasHelpText=${!#strings.isEmpty(checkboxHelpText)},
hasIcon=${!#strings.isEmpty(checkboxIcon)},
name=${inputName} + '[]',
checked=${T(formflow.library.utils.InputUtils).arrayOrStringContains(fieldData.getOrDefault(name, ''), value)},
id=${#bools.isTrue(noneOfTheAbove) ? 'none__checkbox' : inputName + '-' + value}"
th:assert="
${!#strings.isEmpty(inputName)},
${!#strings.isEmpty(value)},
${!#strings.isEmpty(label)}">
<label th:for="${id}"
th:id="${id} + '-label'"
class="checkbox display-flex">
<input type="checkbox"
th:id="${id}"
th:value="${value}"
th:name="${name}"
th:checked="${checked}"
th:attr="
aria-invalid=${hasError},
data-follow-up=${followUpId}">
<div th:if="${hasIcon}">
<i th:class="${'icon-' + checkboxIcon}" style="margin-right: 0.5rem"></i>
</div>
<div>
<div th:text="${label}"></div>
<small th:if="${hasHelpText}"
th:id="${id} + '-help-text'"
th:utext="${checkboxHelpText}"
class="text--small with-no-padding font-weight--normal"></small>
</div>
</label>
</th:block>

0 comments on commit 2f43917

Please sign in to comment.