From 8978ad9842425b1c6f8bfcba9327831e115b5269 Mon Sep 17 00:00:00 2001 From: DavDohDWP <150276629+DavDohDWP@users.noreply.github.com> Date: Wed, 8 Jan 2025 09:30:20 +0000 Subject: [PATCH] verification screens --- app/views/evidence/upload-table-new-idea.njk | 178 ++++++++++++++++++ .../customer-view/verify/email-1.html | 3 +- .../customer-view/verify/email-verified.html | 2 +- .../verify/mobile-phone-number-verified.html | 2 +- .../customer-view/verify/text-message-1.html | 3 +- .../verify/verify-your-email.html | 3 +- .../verify-your-mobile-phone-number.html | 3 +- 7 files changed, 186 insertions(+), 8 deletions(-) create mode 100644 app/views/evidence/upload-table-new-idea.njk diff --git a/app/views/evidence/upload-table-new-idea.njk b/app/views/evidence/upload-table-new-idea.njk new file mode 100644 index 0000000..0054e14 --- /dev/null +++ b/app/views/evidence/upload-table-new-idea.njk @@ -0,0 +1,178 @@ +{% extends "layouts/main.html" %} + +{% set evidenceTypeCapitalFirstLetter = data.evidenceType %} +{% if data.evidenceType !== "P60" %} + {% set evidenceType = data.evidenceType.toLowerCase() %} +{% else %} + {% set evidenceType = data.evidenceType %} +{% endif %} + +{% set remainingUploadBalance = data.uploadLimit - data.benefits[0].files.length * 9 %} + +{% set warningText = "You have gone over your 100MB limit. You must remove at least " + remainingUploadBalance * -1 + "MB to continue."%} + +{% block pageTitle %} + Content page template – {{ serviceName }} – GOV.UK Prototype Kit +{% endblock %} + +{% block beforeContent %} + +
+ +{# {{ data | dump }} #} + +{{ govukBackLink({ + text: "Back", + href: "javascript:window.history.back()" +}) }} + +{% endblock %} + +{% block content %} + +{% for item in data.benefits %} + +

Check your files

+ +{% if data.benefits[0].files.length > 0 %} + +
+
+

{{ evidenceTypeCapitalFirstLetter }} files added

+ +
+ {% for item in data.benefits %} + {% if item.name === data.yourBenefits %} + {% for item in item.files %} +
+ +
+ File {{ loop.index }} +
+
+

{{item}} (9MB)

+
+
+ + Remove + +
+
+ {% endfor %} + {% endif %} + {% endfor %} +
+
+
+ +{% if remainingUploadBalance > 0 %} + +

+ You have {{ remainingUploadBalance }}MB remaining of your upload limit. +

+ +
+ +
+
+ +
+ +
+ + +
+ +
+ +{% else %} + {{ govukWarningText({ + text: warningText, + iconFallbackText: "Warning" +}) }} + + + +
+
+

How do I send more files?

+

You will need to send your files in 2 parts if they are too big to send all together. You can send some now, and then start again to send the rest.

+

Follow these 3 steps:

+
    +
  1. Remove some files so you are not over the 100MB limit
  2. +
  3. Send the files you did not remove
  4. +
  5. Start the process again to add and send the files you removed
  6. +
+

You can also post your evidence instead. To find details on where to post your evidence, you need to contact the benefit that you wish to send evidence to directly.

+
+
+ +{% endif %} + + +{% else %} +
+
+

No {{ evidenceType }} files added

+

You will need to upload a file to send your evidence.

+
+
+ +
+ + Cancel upload +
+ + +{% endif %} + +{% endfor %} + + + +
+
+ + + + +{% endblock %} diff --git a/app/views/preferences/customer-view/verify/email-1.html b/app/views/preferences/customer-view/verify/email-1.html index 6a6642e..64bf811 100644 --- a/app/views/preferences/customer-view/verify/email-1.html +++ b/app/views/preferences/customer-view/verify/email-1.html @@ -43,7 +43,8 @@

Email content

Hi [name],

-

Here is your 6 digit code. Enter it on the 'Verify your email' screen to continue.

+

You recently updated how we contact you. You should now verify your email with us.

+

To do this, you will need to enter the 6 digit code below on our verification page. You may need to login to our One Login service before being able to enter your code.

123456

Department for Work and Pensions (DWP)

diff --git a/app/views/preferences/customer-view/verify/email-verified.html b/app/views/preferences/customer-view/verify/email-verified.html index 396ed6b..5b64c02 100644 --- a/app/views/preferences/customer-view/verify/email-verified.html +++ b/app/views/preferences/customer-view/verify/email-verified.html @@ -31,7 +31,7 @@

What happens next

We have sent you a confirmation email to example@email.com.

-

You can now exit this page.

+

You can now leave this page.

diff --git a/app/views/preferences/customer-view/verify/mobile-phone-number-verified.html b/app/views/preferences/customer-view/verify/mobile-phone-number-verified.html index ce5a21e..cb24827 100644 --- a/app/views/preferences/customer-view/verify/mobile-phone-number-verified.html +++ b/app/views/preferences/customer-view/verify/mobile-phone-number-verified.html @@ -31,7 +31,7 @@

What happens next

We have sent you a confirmation text message to 07123 456 789.

-

You can now exit this page.

+

You can now leave this page.

diff --git a/app/views/preferences/customer-view/verify/text-message-1.html b/app/views/preferences/customer-view/verify/text-message-1.html index 5914068..10e0698 100644 --- a/app/views/preferences/customer-view/verify/text-message-1.html +++ b/app/views/preferences/customer-view/verify/text-message-1.html @@ -44,7 +44,8 @@

Text message content

Hi [name],

-

Here is your 6 digit code. Enter it on the 'Verify your phone number' screen to continue.

+

You recently updated how we contact you. You should now verify your phone number with us.

+

To do this, you will need to enter the 6 digit code below on our verification page. You may need to login to our One Login service before being able to enter your code.

123456

Department for Work and Pensions (DWP)

diff --git a/app/views/preferences/customer-view/verify/verify-your-email.html b/app/views/preferences/customer-view/verify/verify-your-email.html index d82ede8..4a45de0 100644 --- a/app/views/preferences/customer-view/verify/verify-your-email.html +++ b/app/views/preferences/customer-view/verify/verify-your-email.html @@ -27,8 +27,7 @@

Verify your email

-

Resend email

-

I did not get an email

+

Resend code

diff --git a/app/views/preferences/customer-view/verify/verify-your-mobile-phone-number.html b/app/views/preferences/customer-view/verify/verify-your-mobile-phone-number.html index 6808694..a390b2d 100644 --- a/app/views/preferences/customer-view/verify/verify-your-mobile-phone-number.html +++ b/app/views/preferences/customer-view/verify/verify-your-mobile-phone-number.html @@ -27,8 +27,7 @@

Verify your phone number

-

Resend text message

-

I did not get a text message

+

Resend code