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

Adjust code to start to use required fields logic that ffb added. #235

Merged
merged 7 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
6 changes: 3 additions & 3 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ continue-with-site.header=Based on your answers, you can apply for benefits on t

help-needed.title=Select help
help-needed.header=What kind of help would you like?
help-needed.subheader=This helps us show you which benefits programs exist for your needs.
help-needed.subheader=This helps us show you which benefits programs exist for your needs.<br><br>Check all that apply.
help-needed.food=Help with food
help-needed.children=Help with money for children
help-needed.utilities=Help with utilities
Expand Down Expand Up @@ -642,8 +642,8 @@ household-income-total.add-by-job=Do you want to add your monthly household inco
household-income-total.no=No, continue
household-income-total.yes=Yes, add income by job
additional-income.title=Additional income
additional-income.header=Does anyone in the household get money from any of these sources?<p>Check all that apply.</p>
additional-income.subtext=We use this to check if you can get benefits in 7 days or less. Your benefit amount doesn't change by adding this field.<p>Check all that apply.</p>
additional-income.header=Does anyone in the household get money from any of these sources?
additional-income.subtext=We use this to check if you can get benefits in 7 days or less. Your benefit amount doesn't change by adding this field.<br /><br />Check all that apply.
additional-income.choice.alimony=Alimony
additional-income.choice.child-support=Child Support
additional-income.choice.friends-and-family=Contributions from friends and family
Expand Down
9 changes: 7 additions & 2 deletions src/main/resources/templates/fragments/cardHeader.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<header
th:fragment="cardHeader"
th:with="hasSubtext=${!#strings.isEmpty(subtext)}"
th:with="hasSubtext=${!#strings.isEmpty(subtext)},
requiredField=${required ?: false}"
th:assert="${!#strings.isEmpty(header)}"
class="form-card__header">
<h1 id="header" class="h2" th:utext="${header}"></h1>
<h1 id="header" class="h2">
<span th:utext="${header}"></span>
<span th:if="${requiredField}" class="required-input"
bseeger marked this conversation as resolved.
Show resolved Hide resolved
th:text="#{general.required-field}"></span>
</h1>
<p id="header-help-message"
th:if="${hasSubtext}"
th:utext="${subtext}"></p>
Expand Down

This file was deleted.

This file was deleted.

82 changes: 0 additions & 82 deletions src/main/resources/templates/fragments/inputs/duedate.html

This file was deleted.

81 changes: 0 additions & 81 deletions src/main/resources/templates/fragments/inputs/fulldate.html

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions src/main/resources/templates/fragments/inputs/text.html

This file was deleted.

Loading
Loading