Skip to content

Commit

Permalink
Pass helpText to radioFieldsetUnescaped
Browse files Browse the repository at this point in the history
  • Loading branch information
vrajmohan committed Feb 15, 2024
1 parent 716444e commit f8dcd4c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -921,12 +921,12 @@ sensitive-conviction-questions.header=Please answer the following questions for
sensitive-conviction-questions.subtext=<p>If any of the following are "yes" for a member of your household, they may not be allowed to receive TCA or SNAP. <strong>However, they may still be eligible.</strong> After submitting your application, you can talk to a caseworker to see who can get benefits.</p>\
<p> It's essential to be honest so you and your household get the benefits you're entitled to. There are also penalties for providing false information.</p>

sensitive-conviction-question-HasDrugKingpinFelony=<p>Has anyone in your household been convicted of a drug kingpin felony on or after August 22, 1996?</p> \
<p class="text--small">A drug kingpin is an organizer, supervisor, financier, or manager who acts as a co-conspirator in a conspiracy to manufacture, distribute, dispense, transport in, or bring into the State a controlled dangerous substance.</p>
sensitive-conviction-question-HasVolumeDrugDealerFelony=<p>Has anyone in your household been convicted of a volume dealer drug felony on or after August 22, 1996?</p> \
<p class="text--small">A volume dealer is an individual, who manufactures, distributes, dispenses or possesses certain quantities of a controlled dangerous substance.</p>
sensitive-conviction-question-HasSexualOffenceConviction=<p>Has anyone in your household been convicted after February 7, 2014 of aggravated sexual abuse, murder, sexual exploitation and other abuse of children, sexual assault*, or a similar state law, and is also not in compliance with the terms of their sentence?</p>\
<p class="text--small"><sup>*</sup>as defined in the Violence Against Women Act of 1994, or a similar state law.</p>
sensitive-conviction-question-HasDrugKingpinFelony=Has anyone in your household been convicted of a drug kingpin felony on or after August 22, 1996?
sensitive-conviction-question-HasDrugKingpinFelony-helpText=A drug kingpin is an organizer, supervisor, financier, or manager who acts as a co-conspirator in a conspiracy to manufacture, distribute, dispense, transport in, or bring into the State a controlled dangerous substance.
sensitive-conviction-question-HasVolumeDrugDealerFelony=Has anyone in your household been convicted of a volume dealer drug felony on or after August 22, 1996?
sensitive-conviction-question-HasVolumeDrugDealerFelony-helpText=A volume dealer is an individual, who manufactures, distributes, dispenses or possesses certain quantities of a controlled dangerous substance.
sensitive-conviction-question-HasSexualOffenceConviction=Has anyone in your household been convicted after February 7, 2014 of aggravated sexual abuse, murder, sexual exploitation and other abuse of children, sexual assault*, or a similar state law, and is also not in compliance with the terms of their sentence?
sensitive-conviction-question-HasSexualOffenceConviction-helpText=<sup>*</sup>as defined in the Violence Against Women Act of 1994, or a similar state law.
sensitive-conviction-question-IsViolatingParole=Is anyone in your household currently violating parole or probation or fleeing from the police or the courts?
sensitive-conviction-question-ConvictedForLyingAboutBenefits=Has anyone in your household been convicted since August 22, 1996 in a federal or state court for not telling the truth about where they lived or their identity in order to receive food supplement benefits or cash assistance from more than one place in the same month?
sensitive-conviction-question-ConvictedForTradingBenefits=Has a court convicted any member of your household for trading or trafficking SNAP benefits of $500 or more?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<p class="text--help spacing-below-0 text--normal"
th:if="${hasHelpText}"
th:id="${inputName + '-help-text'}"
th:text="${fieldsetHelpText}"></p>
th:utext="${fieldsetHelpText}"></p>
</legend>
<input type="hidden" th:id="${inputName} + 'Hidden'" th:name="${inputName}" value="">
<th:block th:replace="${content}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
<th:block th:ref="sensitiveQuestionsContent">
<div class="form-card__content"
th:each="question : ${T(org.mdbenefits.app.utils.SubmissionUtilities).SENSITIVE_CONVICTION_QUESTIONS}">
<div th:with="inputName='someone' + ${question}, label='sensitive-conviction-question-' + ${question}">
<div th:with="inputName='someone' + ${question}, label='sensitive-conviction-question-' + ${question}, helpText='sensitive-conviction-question-' + ${question} + '-helpText'">
<th:block th:replace="~{fragments/inputs/radioFieldsetUnescaped ::
radioFieldsetUnescaped(inputName=${inputName},
label=#{${label}},
fieldsetHelpText=${#messages.msgOrNull(helpText)},
content=~{::trueFalseOptions})}">
<th:block th:ref="trueFalseOptions">
<th:block
Expand Down

0 comments on commit f8dcd4c

Please sign in to comment.