Skip to content

Commit

Permalink
Show TCA terms only if TCA selected
Browse files Browse the repository at this point in the history
  • Loading branch information
vrajmohan committed Feb 6, 2024
1 parent 4dee366 commit 0375d42
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/main/resources/templates/mdBenefitsFlow/tcaOhepAgreement.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,21 @@
th:replace="~{fragments/form :: form(action=${formAction}, content=~{::legalExpand1})}">
<th:block th:ref="legalExpand1">
<div class="form-card__content">
<th:block th:replace="~{fragments/accordion :: accordion(
buttonLabel=~{::contentLabel1},
content=~{::content1})}">
<th:block th:ref="contentLabel1"
th:text="#{tca-ohep-agreement.tca-acknowledgement-label}"/>
<th:block th:ref="content1"
th:replace="~{fragments/tcaOhepAgreementFragments :: assignmentOfSupportRightsForTCA}"/>
<th:block th:if="${inputData.get('programs[]').contains('TCA')}">
<th:block th:replace="~{fragments/accordion :: accordion(
buttonLabel=~{::contentLabel1},
content=~{::content1})}">
<th:block th:ref="contentLabel1"
th:text="#{tca-ohep-agreement.tca-acknowledgement-label}"/>
<th:block th:ref="content1"
th:replace="~{fragments/tcaOhepAgreementFragments :: assignmentOfSupportRightsForTCA}"/>
</th:block>
<th:block th:replace="~{fragments/inputs/checkbox ::
checkbox(inputName='tcaAcknowledgementAgree',
label=#{tca-ohep-agreement.tca-acknowledgement-label-agree},
value=true
)}"/>
</th:block>
<th:block th:replace="~{fragments/inputs/checkbox ::
checkbox(inputName='tcaAcknowledgementAgree',
label=#{tca-ohep-agreement.tca-acknowledgement-label-agree},
value=true
)}"/>
<th:block th:replace="~{fragments/accordion :: accordion(
buttonLabel=~{::contentLabel2},
content=~{::content2})}">
Expand Down

0 comments on commit 0375d42

Please sign in to comment.