Skip to content

Commit

Permalink
MLPAB-1523: Update certificate provider date of birth content for pro…
Browse files Browse the repository at this point in the history
…fs and lays (#858)
  • Loading branch information
acsauk authored Nov 21, 2023
1 parent f7741dc commit 86646ef
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lang/cy.json
Original file line number Diff line number Diff line change
Expand Up @@ -967,5 +967,6 @@
"homeAddress": "Welsh",
"goToDashboard": "Welsh",
"printThisPage": "Welsh",
"printerIcon": "Welsh"
"printerIcon": "Welsh",
"yourDateOfBirthWillNotBeShown": "Welsh"
}
3 changes: 2 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -911,5 +911,6 @@
"homeAddress": "Home address",
"goToDashboard": "Go to dashboard",
"printThisPage": "Print this page",
"printerIcon": "Icon of a printer"
"printerIcon": "Icon of a printer",
"yourDateOfBirthWillNotBeShown": "Your date of birth will not be shown to the donor or appear on the completed LPA."
}
17 changes: 15 additions & 2 deletions web/template/certificate_provider_enter_date_of_birth.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,26 @@
<form novalidate method="post">
<h1 class="govuk-heading-xl">{{ tr .App "enterYourDateOfBirth" }}</h1>

{{ if .Donor.CertificateProvider.Relationship.IsProfessionally }}
<p class="govuk-body">{{ tr .App "thisIsRequiredToCheckAndProtect" }}</p>
{{ end }}

{{ template "date" (input . "date-of-birth" "dateOfBirth" .Form.Dob "hint" "dateOfBirthHint") }}

{{ template "dob-warning" . }}

{{ template "warning" (warning .App "18OrOverWarning") }}
{{ if .Donor.CertificateProvider.Relationship.IsProfessionally }}
<div class="govuk-inset-text">{{ tr .App "yourDateOfBirthWillNotBeShown" }}</div>
{{ end }}

{{ if .Donor.CertificateProvider.Relationship.IsPersonally }}
{{ template "warning" (warning .App "18OrOverWarning") }}
{{ end }}

{{ template "continue-button" . }}
<div class="govuk-button-group">
{{ template "continue-button" . }}
<a href="{{ link .App (.App.Paths.CertificateProvider.TaskList.Format .App.LpaID) }}" id="return-to-tasklist-btn" class="govuk-button govuk-button--secondary">{{ tr .App "returnToTaskList" }}</a>
</div>

{{ template "csrf-field" . }}
</form>
Expand Down

0 comments on commit 86646ef

Please sign in to comment.