diff --git a/cypress/e2e/certificate-provider/certificate-provided.cy.js b/cypress/e2e/certificate-provider/certificate-provided.cy.js index db44a5a3d..a10db6755 100644 --- a/cypress/e2e/certificate-provider/certificate-provided.cy.js +++ b/cypress/e2e/certificate-provider/certificate-provided.cy.js @@ -18,4 +18,12 @@ describe('Certificate provided', () => { cy.contains('a', 'Go to your dashboard').click(); cy.url().should('contain', '/dashboard'); }); + + describe('when going to the post office', () => { + it('shows a deadline', () => { + cy.visit('/fixtures/certificate-provider?redirect=/certificate-provided&progress=confirmYourIdentity&idStatus=post-office'); + + cy.contains('Now that you have provided the certificate for this LPA, you must confirm your identity and connect it to your LPA account by:'); + }); + }); }) diff --git a/internal/page/fixtures/certificate_provider.go b/internal/page/fixtures/certificate_provider.go index ad238fa21..ad28e04ee 100644 --- a/internal/page/fixtures/certificate_provider.go +++ b/internal/page/fixtures/certificate_provider.go @@ -292,6 +292,8 @@ func CertificateProvider( DateOfBirth: certificateProvider.DateOfBirth, } certificateProvider.Tasks.ConfirmYourIdentity = task.IdentityStatePending + case "post-office": + certificateProvider.Tasks.ConfirmYourIdentity = task.IdentityStatePending default: userData = identity.UserData{ Status: identity.StatusConfirmed, diff --git a/lang/cy.json b/lang/cy.json index 90a5dd327..5af2010c0 100644 --- a/lang/cy.json +++ b/lang/cy.json @@ -1504,5 +1504,7 @@ "youHaveChosenToConfirmYourIdentityAtPostOffice": "Welsh", "whenYouHaveConfirmedAtPostOfficeReturnToTaskList": "Welsh", "youveSubmittedYourLpaToOpg": "Welsh", - "opgIsCheckingYourLpa": "Welsh" + "opgIsCheckingYourLpa": "Welsh", + "weHaveSentAnEmailYouProvidedCertificate": "
Welsh {{.CertificateProviderEmail}}
", + "certificateProviderNowConfirmYourIdentityContent": "We have sent an email confirming that you provided your certificate for this LPA to {{.CertificateProviderEmail}}.
If you would like a paper record, you can also print a copy of this page.
", + "certificateProviderNowConfirmYourIdentityContent": "Your role as {{possessive .DonorFullName}} certificate provider will not be finalized until you confirm your identity.
Now that you have provided the certificate for this LPA, you must confirm your identity and connect it to your LPA account by:
{{.Deadline}}
When you have confirmed your identity, you will no longer be able to view or access this LPA from your dashboard.
If the Office of the Public Guardian ever has any concerns about {{possessive .DonorFirstNames}} LPA in future, we may contact you.
If you ever need to report a concern, you can do this at any time using the report a concern about an LPA service.
" } diff --git a/web/assets/main.js b/web/assets/main.js index ddc87906d..6deac3e64 100644 --- a/web/assets/main.js +++ b/web/assets/main.js @@ -48,6 +48,14 @@ function init() { }, false); } + const printThisPage = document.getElementById('print-this-page'); + if (printThisPage) { + printThisPage.addEventListener('click', function(e) { + window.print(); + e.preventDefault(); + }, false); + } + function metaContent(name) { return document.querySelector(`meta[name=${name}]`).content; } diff --git a/web/template/certificateprovider/certificate_provided.gohtml b/web/template/certificateprovider/certificate_provided.gohtml index 5212d8e15..b07787d3e 100644 --- a/web/template/certificateprovider/certificate_provided.gohtml +++ b/web/template/certificateprovider/certificate_provided.gohtml @@ -3,23 +3,33 @@ {{ define "pageTitle" }}{{ tr .App "youveProvidedTheCertificateForThisLpa" }}{{ end }} {{ define "main" }} -