Skip to content

Commit

Permalink
Merge pull request #662 from companieshouse/IDVA5-1461-fix-details-up…
Browse files Browse the repository at this point in the history
…dated-tag

Details updated tag added for registered office address
  • Loading branch information
rnesbitt-ch authored Feb 18, 2025
2 parents 092acb3 + 47991a4 commit 8867880
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/views/partials/update-your-details/limited-answers.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% set updateStatusTextForCorrespondenceAddress = "" %}
{% set updateStatusTextForCorrespondenceEmail = "" %}
{% set updateStatusTextForBusinessName = "" %}
{% set updateStatusTextForRegisteredOfficeAddress = "" %}

{% if profileDetailsUpdated.serviceAddress !== profileDetails.serviceAddress %}
{% set updateStatusTextForCorrespondenceAddress =
Expand All @@ -26,6 +27,14 @@
</div>"
%}
{%endif%}
{% if profileDetailsUpdated.registeredOfficeAddress !== profileDetails.registeredOfficeAddress %}
{% set updateStatusTextForRegisteredOfficeAddress =
"<div class='govuk-!-static-padding-top-3'>
<strong class='govuk-tag govuk-tag--blue govuk-!-static-margin-bottom-1'>"+i18n.updatedWarningCaption+"</strong>
<p class='govuk-body-s'>"+i18n.updatedWarningNoteLineOne+"<br>"+i18n.updatedWarningNoteLineTwo+"</p>
</div>"
%}
{%endif%}

<h2 class="govuk-heading-m">{{ i18n.updateDetailsHeading }}</h2>
{{ govukSummaryList({
Expand Down Expand Up @@ -86,7 +95,7 @@
classes: "govuk-!-width-one-third"
},
value: {
html: profileDetailsUpdated.registeredOfficeAddress + updateStatusTextForCorrespondenceAddress,
html: profileDetailsUpdated.registeredOfficeAddress + updateStatusTextForRegisteredOfficeAddress,
classes: "govuk-!-width-one-third"
},
actions: {
Expand Down

0 comments on commit 8867880

Please sign in to comment.