Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add legalese validations #443

Merged
merged 2 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,16 @@ public class LaDigitalAssister extends FlowInputs {

private List<String> raceSelected;

@NotEmpty(message="{error.missing-checkbox}")
private List<String> rightsAndResponsibilitiesAgree;

@NotEmpty(message="{error.missing-checkbox}")
private List<String> noIncorrectInformationAgree;

@NotEmpty(message="{error.missing-checkbox}")
private List<String> programsSharingDataAccessAgree;

@NotEmpty(message="{error.missing-checkbox}")
private List<String> nonDiscriminationStatementAgree;

@NotBlank(message="{error.missing-general}")
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -971,10 +971,10 @@ race-selection.option5=White
legal-title=Legal Stuff
legal-header1=The Legal Stuff
legal-subheader=General agreements
legal-main-body=Expand the boxes below to review the terms. Check the boxes of the terms you agree with. You will sign on the next page.
legal-main-body=<p>An asterisk (*) indicates a required field</p><p>Expand the boxes below to review the terms. Check the boxes to confirm you agree with the terms.</p>
legal-expanded.header1=Your rights and responsibilities
legal-expanded.body1=<p>When you receive benefits from the Louisiana Department of Children and Family Services, you have certain rights and responsibilities that are explained below.<br/><br/>What Are Your Rights?</p> <ul class="list--bulleted"><li>Non-Discrimination - This institution is prohibited from discriminating on the basis of race, color, national origin, disability, age, sex and in some cases religion or political beliefs. The U.S Department of Agriculture also prohibits discrimination against its customers, employees, and applicants for employment on the bases of race, color, national origin, age, disability, sex, gender identity, religion, reprisal, and where applicable, political beliefs, marital status, familial or parental status, sexual orientation, or all or part of an individual's income is derived from any public assistance program, or protected genetic information in employment or in any program or activity conducted or funded by the Department. (Not all prohibited bases will apply to all programs and/or employment activities) Persons with disabilities who require alternative means of communication for program information (e.g. Braille, large print, audiotape, American Sign Language, etc.), should contact the Agency (State or local) where they applied for benefits. Individuals who are deaf, hard of hearing or have speech disabilities may contact USDA through the Federal Relay Service at (800) 877-8339. Additionally, program information may be made available in languages other than English. To file a program complaint of discrimination, complete the USDA Program Discrimination Complaint Form, (AD-3027), found online at <a target="_blank" rel="noreferrer noopener" href="http://www.ascr.usda.gov/complaint_filing_cust.html"> http://www.ascr.usda.gov/complaint_filing_cust.html</a>, or at any USDA office, or write a letter addressed to USDA and provide in the letter all of the information requested in the form. To request a copy of complaint form, call (866) 632-9992. Submit your completed form or letter to USDA by: <ul> <li>1. Mail: U.S. Department of Agriculture Office of the Assistant Secretary for Civil Rights <br/> 1400 Independence Avenue, SW Washington, D.C. 20250-94102.</li><li>2. Fax: (202) 690-7442; or </li><li>3. Email: <a href = "mailto: program.intake@usda.gov">program.intake@usda.gov</a>.</li></ul> For any other information dealing with Supplemental Nutrition Assistance Program (SNAP) issues, persons should either contact the USDA SNAP Hotline Number at (800) 221-5689, which is also in Spanish or call the State Information/Hotline Numbers (click the link for a listing of hotline numbers by State); found online at <a target="_blank" rel="noreferrer noopener" href="http://www.fns.usda.gov/snap/contact_info/hotlines.htm">http://www.fns.usda.gov/snap/contact_info/hotlines.htm</a>. To file a complaint of discrimination regarding a program receiving Federal financial assistance through the U.S. Department of Health and Human Services (HHS), write: HHS Director, Office for Civil Rights, Room 515-F, 200 Independence Avenue, S.W., Washington, D.C. 20201 or call (202) 619-0403 (voice) or (800) 537-7697 (TTY). This institution is an equal opportunity provider.</li><li>Complaint - A program complaint may be filed with the Department of Children and Family Services (DCFS) by emailing <a href = "mailto: LAHELPU.DCFS@LA.GOV">LAHELPU.DCFS@LA.GOV</a> or by calling 225-342-2342. You may file a civil rights complaint with the Department of Children and Family Services (DCFS) by completing the DCFS Civil Rights Complaint Form. Turn the form in to a local office; mail it to DCFS Civil Rights Section, P O Box 1887, Baton Rouge, LA 70821; email <a href = "mailto: DCFS.BureauofCivilRights@LA.GOV">DCFS.BureauofCivilRights@LA.GOV</a>, or; call (225) 342-0309. You may file a civil rights complaint with DCFS and USDA or only DCFS.</li><li>Fair Hearing - If you do not agree with any decision made on your case, you have the right to ask that your case be reviewed. You can request a fair hearing in writing, in person, or by calling the office. You have the right to look at your case information before the hearing.</li></ul><br/><p>What Are Your Responsibilities?</p><ul class="list--bulleted"><li>Cooperation - You have to cooperate by providing the information we need to determine your eligibility for benefits for you and others for whom you are applying. You also have to provide proof of the information you report. You will be expected to cooperate if a home visit is necessary to determine your eligibility. If your case is selected for a quality control review by state or federal reviewers, you have to cooperate with them.</li></ul><p>Report Changes<br/><br/>If you receive SNAP benefits, you must report:</p><ul class="list--bulleted"><li>When there is an increase in income or if someone who has income moves into the home, add the amount of earned and unearned income for all household members. If this amount is more than 130% of the Federal Poverty Level for your household size shown on your most recent SNAP notice, the change must be reported to DCFS.</li><li>If your household receives lottery or gambling winnings of $4,250.00 or more, won in a single game before taxes or withholdings.</li><li>If you receive FITAP, you have to follow the reporting requirements explained in your Family Success Agreement and report these changes within 10 days of your knowledge of the change, and report within 10 days if the only eligible child receiving FITAP benefits moves out of your home.</li><li>If you are receiving Post-FITAP benefits, you must also report within 10 days if you stop working, if the only child in the home moves out of the home, and if you move out of state.</li><li>If you receive KCSP, you have to report within 10 days if the only eligible child receiving KCSP benefits moves out of your home.</li><li>If you are not receiving SNAP benefits, and are receiving FITAP, KCSP, or CCAP, you have to report within 10 days if: There is a change in the source of any income received in your household (This includes changes in employers and new sources of income such as child support, Social Security, SSI, etc.), the amount of your household's unearned income changes by more than $100 per month, the amount of your household's earned income changes by more than $100 per month, someone moves into or out of your household, or you move.</li><li>For FITAP or KCSP, you have to report within 10 days any changes in: School attendance of any 18 year old in your household and marital status of anyone in your household.</li></ul>
legal-agree=I agree with these terms
legal-agree=*I agree with these terms
legal-expanded.header2=Penalties for knowingly reporting incorrect information
legal-expanded.body2=<p>Penalties<br/><br/>If you knowingly report incorrect information, your SNAP, FITAP, or KCSP benefits may be denied, reduced, or ended and you may be subject to criminal prosecution. <br/><br/>What penalties apply in SNAP? <br/><br/> If you or any member of your household do the following: </p> <ul class="list--bulleted"><li>Hide information or give false information</li><li>Trade or sell SNAP benefits or EBT cards</li><li>Use SNAP benefits to buy ineligible items, such as alcohol or tobacco</li><li>Use someone else's SNAP benefits</li><li>Pay for food purchased on credit with SNAP benefits</li></ul><p>Lose your SNAP benefits for:</p><ul class="list--bulleted"><li>1 year for the first violation</li><li>2 years for the second violation</li><li>Permanently for the third violation</li></ul><p>You may also be fined up to $250,000 or imprisoned for up to 20 years or both. You may also be barred from SNAP for an additional 18 months if court ordered.<br/><br/>If you or any member of your household do the following:</p><ul class="list--bulleted"><li>Trade SNAP benefits for illegal drugs and found guilty by a court of law</li></ul><p>Lose your SNAP benefits for:</p><ul class="list--bulleted"><li>2 years for the first violation</li><li>Permanently for the second violation</li></ul><p>If you or any member of your household do the following:</p><ul class="list--bulleted"><li>Trade SNAP benefits for firearms, ammunition, or explosives and found guilty by a court of law</li><li>Trade, buy, or sell SNAP benefits of $500 or more and found guilty by a court of law</li></ul><p>You Will:</p><ul class="list--bulleted"><li>Lose your SNAP benefits permanently</li></ul><p>If you or any member of your household do the following:</p><ul class="list--bulleted"><li>Give false information about who you are or where you live in order to receive benefits in more than one case at the same time</li></ul><p>You Will:</p><ul class="list--bulleted"><li>Lose your SNAP benefits for 10 years</li></ul><p>What penalties apply in FITAP and KCSP?</p><p>If you or any member of your household do the following:</p><p>You Will:</p><ul class="list--bulleted"><li>Hide information or give false information</li></ul><p>You Will:</p><p>Lose your benefits for:</p><ul class="list--bulleted"><li>1 year for the first violation</li><li>2 years for the second violation</li><li>Permanently for the third violation</li></ul><p>You may also be fined up to $50,000 or imprisoned for up to 20 years or both.</p><p>If you or any member of your household do the following:</p><ul class="list--bulleted"><li>Use your EBT card</li><ul class="list--bulleted"><li>in a liquor store,</li><li>in a gambling casino or gaming establishment,</li><li>in a retail establishment that produces adult entertainment in which performers disrobe or perform in an unclothed state for entertainment purposes, or</li><li>at any adult bookstore, any adult paraphernalia store, or any sexually oriented business,</li><li>at any tattoo, piercing, or commercial body art facility,</li><li>at any nail salon,</li><li>at any jewelry store,</li><li>at any amusement or video arcade,</li><li>at any bail bonds company,</li><li>at any night club, bar, tavern, or saloon,</li><li>on any cruise ship,</li><li>at any psychic business; or</li><li>at any establishment where persons under age 18 are not permitted, or</li><li>at an ATM in any of these establishments,</li></ul></ul><ul class="list--bulleted"><li>Use your EBT card</li><ul class="list--bulleted"><li>at any retailer for the purchase of an alcoholic beverage,</li><li>at any retailer for the purchase of tobacco products, or,</li><li>at any retailer for the purchase of lottery tickets,</li><li>at any retailer for the purchase of jewelry.</li></ul></ul><p>You Will:</p><p>Lose your benefits for:</p><ul class="list--bulleted"><li>1 year for the first violation</li><li>2 years for the second violation</li><li>Permanently for the third violation</li></li></ul><p>If you or any member of your household do the following:</p><ul class="list--bulleted"><li>Give false information about where you live in order to receive benefits in two or more states at the same time</li></ul><p>You Will: </p> <ul class="list--bulleted"><li>Lose your benefits for 10 years</li></ul>
legal-expanded.header3=Louisiana Revised Statute 46:56 - Programs sharing case data access
Expand Down Expand Up @@ -1064,6 +1064,7 @@ reveal-content-4=Early Learning and Childcare (ECE) helps young children and the
error.missing-firstname=Make sure to provide a first name.
error.missing-lastname=Make sure to provide a last name.
error.missing-general=Make sure you answer this question.
error.missing-checkbox=Make sure to check this checkbox.
error.format-dob=Make sure to provide a date in MM/DD/YYYY OR M/D/YYYY.
error.invalid-dob=Make sure to provide a valid date.
error.format-zip=Make sure to enter a zip code with 5 digits.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<th:block th:replace="~{'fragments/icons' :: uploadDocuments}"></th:block>
<th:block
th:replace="'fragments/cardHeader' :: cardHeader(header=#{legal-header1}, subtext=#{legal-subheader})"/>
<p th:text="#{legal-main-body}"></p>
<p th:utext="#{legal-main-body}"></p>
<th:block th:replace="'fragments/form' :: form(action=${formAction}, content=~{::legalExpand1})">
<th:block th:ref="legalExpand1">
<div class="form-card__content">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,10 @@ void fullDigitalAssisterFlow() {
testPage.clickContinue();

assertThat(testPage.getTitle()).isEqualTo(message("legal-title"));
testPage.clickElementById("rightsAndResponsibilitiesAgree-true");
testPage.clickElementById("noIncorrectInformationAgree-true");
testPage.clickElementById("programsSharingDataAccessAgree-true");
testPage.clickElementById("nonDiscriminationStatementAgree-true");
testPage.clickContinue();

assertThat(testPage.getTitle()).isEqualTo(message("signature-title"));
Expand Down