Skip to content

Commit

Permalink
MLPAB-1666 Add case details to the task lists (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx authored Jan 12, 2024
1 parent d65bbef commit 3de5ac3
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "<p class=\"govuk-body\">Until you have witnessed {{.DonorFullName}} sign their LPA, you can only <a href=\"{{ .YourRoleURL }}\">review your responsibilities as the certificate provider</a> or read the current draft of the LPA.</p>",
"untilYouHaveWitnessed": "<p class=\"govuk-body\">Until you have witnessed {{.DonorFullName}} sign their LPA, you can only <a class=\"govuk-link\" href=\"{{ .YourRoleURL }}\">review your responsibilities as the certificate provider</a> or read the current draft of the LPA.</p>",
"afterYouHaveWitnessed": "<p class=\"govuk-body\">After you have witnessed, you will be able to start your other tasks.</p>",
"readTheDraftLpa": "Read the draft LPA",
"myAttorneyIsTrustCorporation": "My attorney is a trust corporation",
Expand Down
7 changes: 7 additions & 0 deletions web/assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
17 changes: 17 additions & 0 deletions web/template/attorney_task_list.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@
</span>
<h1 class="govuk-heading-xl">{{ tr .App "yourTaskList" }}</h1>

<div class="govuk-inset-text">
<dl class="govuk-summary-list govuk-summary-list--no-border app-summary-list--no-vertical-padding">
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">{{ tr .App "donor" }}</dt>
<dd class="govuk-summary-list__value">{{ .Donor.Donor.FullName }}</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">{{ tr .App "lpaType" }}</dt>
<dd class="govuk-summary-list__value">{{ tr .App .Donor.Type.String }}</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">{{ tr .App "referenceNumber" }}</dt>
<dd class="govuk-summary-list__value">{{ .Donor.LpaUID }}</dd>
</div>
</dl>
</div>

<ol class="app-task-list govuk-!-margin-top-0" style="position: relative;">
<li>
<h2 class="app-task-list__section">{{ tr $.App "readAndSignTheLpa" }}</h2>
Expand Down
17 changes: 17 additions & 0 deletions web/template/certificate_provider_task_list.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@
</span>
<h1 class="govuk-heading-xl">{{ tr .App "yourTaskList" }}</h1>

<div class="govuk-inset-text">
<dl class="govuk-summary-list govuk-summary-list--no-border app-summary-list--no-vertical-padding">
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">{{ tr .App "donor" }}</dt>
<dd class="govuk-summary-list__value">{{ .Donor.Donor.FullName }}</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">{{ tr .App "lpaType" }}</dt>
<dd class="govuk-summary-list__value">{{ tr .App .Donor.Type.String }}</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">{{ tr .App "referenceNumber" }}</dt>
<dd class="govuk-summary-list__value">{{ .Donor.LpaUID }}</dd>
</div>
</dl>
</div>

{{ if .Donor.SignedAt.IsZero }}
{{ $yourRoleURL := link .App (.App.Paths.CertificateProvider.YourRole.Format .Donor.LpaID)}}

Expand Down
13 changes: 13 additions & 0 deletions web/template/task_list.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
<span class="govuk-caption-xl">{{ trFormat .App "makeYourTypeLpa" "Type" (tr .App .Donor.Type.String | lowerFirst) }}</span>
<h1 class="govuk-heading-xl">{{ tr .App "yourTaskList" }}</h1>

<div class="govuk-inset-text">
<dl class="govuk-summary-list govuk-summary-list--no-border app-summary-list--no-vertical-padding">
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">{{ tr .App "donor" }}</dt>
<dd class="govuk-summary-list__value">{{ .Donor.Donor.FullName }}</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">{{ tr .App "referenceNumber" }}</dt>
<dd class="govuk-summary-list__value">{{ .Donor.LpaUID }}</dd>
</div>
</dl>
</div>

{{ template "details" (details . "taskListHelp" "taskListHelpContent" false) }}

{{ if .EvidenceReceived }}
Expand Down

0 comments on commit 3de5ac3

Please sign in to comment.