Skip to content

Commit

Permalink
nested mailing address under if statement because mailing address key…
Browse files Browse the repository at this point in the history
…s wont always be sest (#515)

Co-authored-by: Ana Medrano Fernandez <amedrano@codeforamerica.org@Anas-MacBook-Pro-2.local>
  • Loading branch information
analoo and Ana Medrano Fernandez committed Jan 16, 2024
1 parent 1c54008 commit b715cd8
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
</div>
<hr class="spacing-below-35 spacing-above-35">
<b th:text="#{review-contact-info.mailing-address}"></b>
<div class="spacing-above-15">
<p class="spacing-below-5" th:text="${fieldData.homeAddressStreetAddress1}"></p>
<p class="spacing-below-5" th:text="${fieldData.homeAddressStreetAddress2}"></p>
<div class="spacing-above-15"
th:if="${fieldData.containsKey('mailingAddressStreetAddress1')}">
<p class="spacing-below-5" th:text="${fieldData.mailingAddressStreetAddress1}"></p>
<p class="spacing-below-5" th:text="${fieldData.mailingAddressStreetAddress2}"></p>
<p class="spacing-below-5"
th:text="${fieldData.homeAddressCity} + ', ' + ${fieldData.homeAddressState}"></p>
<p th:text="${fieldData.homeAddressZipCode}"></p>
th:text="${fieldData.mailingAddressCity} + ', ' + ${fieldData.mailingAddressState}"></p>
<p th:text="${fieldData.mailingAddressZipCode}"></p>
</div>
<hr class="spacing-below-35 spacing-above-35">
<b th:text="#{review-contact-info.contact-information}"></b>
Expand All @@ -35,14 +36,14 @@
<p class="spacing-below-5" th:text="${fieldData.emailAddress}"></p>
</div>
<hr class="spacing-below-35 spacing-above-35">

</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/inputs/submitButton :: submitButton(
text=#{review-contact-info.this-looks-correct})}"/>
<a class="button button--secondary" th:text="#{review-contact-info.edit}"
th:href="'/flow/' + ${flow} + '/personalInfo'"></a>
<div><a th:text="#{review-contact-info.submit-incomplete}" th:href="'/flow/' + ${flow} + '/expeditedSnapStart'"></a></div>
<div><a th:text="#{review-contact-info.submit-incomplete}"
th:href="'/flow/' + ${flow} + '/expeditedSnapStart'"></a></div>
</div>
</th:block>
</th:block>
Expand Down

0 comments on commit b715cd8

Please sign in to comment.