From 3de5ac3a47e54ff3ef475accb53fc492d2e228b6 Mon Sep 17 00:00:00 2001 From: Joshua Hawxwell Date: Fri, 12 Jan 2024 12:55:49 +0000 Subject: [PATCH] MLPAB-1666 Add case details to the task lists (#957) --- lang/en.json | 2 +- web/assets/scss/main.scss | 7 +++++++ web/template/attorney_task_list.gohtml | 17 +++++++++++++++++ .../certificate_provider_task_list.gohtml | 17 +++++++++++++++++ web/template/task_list.gohtml | 13 +++++++++++++ 5 files changed, 55 insertions(+), 1 deletion(-) diff --git a/lang/en.json b/lang/en.json index bd42b1544d..bf7c3279e2 100644 --- a/lang/en.json +++ b/lang/en.json @@ -647,7 +647,7 @@ "professionallyHint": "This must be someone with the relevant professional skills to make sure you understand your LPA and want to make it.", "asYouHaveMoreThanOneAttorney": "As you have more than one attorney, you must decide whether each attorney can use your LPA on their own or whether they must all agree decisions together, or a mixture.", "beACertificateProviderOnAnLpa": "Be a certificate provider on an LPA", - "untilYouHaveWitnessed": "

Until you have witnessed {{.DonorFullName}} sign their LPA, you can only review your responsibilities as the certificate provider or read the current draft of the LPA.

", + "untilYouHaveWitnessed": "

Until you have witnessed {{.DonorFullName}} sign their LPA, you can only review your responsibilities as the certificate provider or read the current draft of the LPA.

", "afterYouHaveWitnessed": "

After you have witnessed, you will be able to start your other tasks.

", "readTheDraftLpa": "Read the draft LPA", "myAttorneyIsTrustCorporation": "My attorney is a trust corporation", diff --git a/web/assets/scss/main.scss b/web/assets/scss/main.scss index 8b1a2d93a9..3fafabc898 100644 --- a/web/assets/scss/main.scss +++ b/web/assets/scss/main.scss @@ -85,3 +85,10 @@ body:not(.js-enabled) .govuk-back-link { } .govuk-grid-column-two-thirds { width: 100% !important; } } + +.app-summary-list--no-vertical-padding { + .govuk-summary-list__key, .govuk-summary-list__value { + padding-top: 0; + padding-bottom: 0; + } +} diff --git a/web/template/attorney_task_list.gohtml b/web/template/attorney_task_list.gohtml index 31e16d507a..a7684a3823 100644 --- a/web/template/attorney_task_list.gohtml +++ b/web/template/attorney_task_list.gohtml @@ -16,6 +16,23 @@

{{ tr .App "yourTaskList" }}

+
+
+
+
{{ tr .App "donor" }}
+
{{ .Donor.Donor.FullName }}
+
+
+
{{ tr .App "lpaType" }}
+
{{ tr .App .Donor.Type.String }}
+
+
+
{{ tr .App "referenceNumber" }}
+
{{ .Donor.LpaUID }}
+
+
+
+
  1. {{ tr $.App "readAndSignTheLpa" }}

    diff --git a/web/template/certificate_provider_task_list.gohtml b/web/template/certificate_provider_task_list.gohtml index e7b472050e..e0107baff8 100644 --- a/web/template/certificate_provider_task_list.gohtml +++ b/web/template/certificate_provider_task_list.gohtml @@ -12,6 +12,23 @@

    {{ tr .App "yourTaskList" }}

    +
    +
    +
    +
    {{ tr .App "donor" }}
    +
    {{ .Donor.Donor.FullName }}
    +
    +
    +
    {{ tr .App "lpaType" }}
    +
    {{ tr .App .Donor.Type.String }}
    +
    +
    +
    {{ tr .App "referenceNumber" }}
    +
    {{ .Donor.LpaUID }}
    +
    +
    +
    + {{ if .Donor.SignedAt.IsZero }} {{ $yourRoleURL := link .App (.App.Paths.CertificateProvider.YourRole.Format .Donor.LpaID)}} diff --git a/web/template/task_list.gohtml b/web/template/task_list.gohtml index 742492141e..408367da9d 100644 --- a/web/template/task_list.gohtml +++ b/web/template/task_list.gohtml @@ -8,6 +8,19 @@ {{ trFormat .App "makeYourTypeLpa" "Type" (tr .App .Donor.Type.String | lowerFirst) }}

    {{ tr .App "yourTaskList" }}

    +
    +
    +
    +
    {{ tr .App "donor" }}
    +
    {{ .Donor.Donor.FullName }}
    +
    +
    +
    {{ tr .App "referenceNumber" }}
    +
    {{ .Donor.LpaUID }}
    +
    +
    +
    + {{ template "details" (details . "taskListHelp" "taskListHelpContent" false) }} {{ if .EvidenceReceived }}