-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from ministryofjustice/EMP-483-crm-5-defects-…
…capital-details-page EMP-483: CRM 5 defects - capital details page
- Loading branch information
Showing
3 changed files
with
33 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
server/views/components/customDisplay/crm5/crm5CapitalDetails.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% from "../../formField.njk" import formField %} | ||
{% from "../../formFieldHeading.njk" import formFieldHeading %} | ||
|
||
{% macro crm5CapitalDetails(data) %} | ||
|
||
<div class="govuk-form-group govuk-summary-card govuk-!-margin-bottom-6"> | ||
<div class="govuk-summary-card__title-wrapper"> | ||
<h3 class="govuk-summary-card__title">Capital Details</h3> | ||
</div> | ||
<div class="govuk-summary-card__content"> | ||
<dl class="govuk-summary-list"> | ||
{{ formField({ label: "Is your client under 18 years old?", value: data.isUnder18 }) }} | ||
|
||
{% if data.isUnder18 === "No" %} | ||
{{ formField({ label: "Does your client or partner (if living with client as couple) get Income Support, Income Based Job Seeker's Allowance, Income Related Employment and Support Allowance or Guarantee State Pension Credit?", value: data.hasIncomeSupport } ) }} | ||
{{ formField({ label: "How many dependants does your client have?", value: data.numOfDependants }) }} | ||
|
||
{{ formFieldHeading("Give the total savings and other capital which your client has (and their partner, if relevant) (include equity in home above £100,000 after allowing for mortgage(s) up to the value of £100,000)") }} | ||
{{ formField({ label: "Client", value: data.clientSavings, type: "currency" }) }} | ||
{{ formField({ label: "Partner", value: data.partnerSavings, type: "currency" }) }} | ||
{{ formField({ label: "Total", value: data.totalSavings, type: "currency" }) }} | ||
{% endif %} | ||
</dl> | ||
</div> | ||
</div> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters