Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROECCT-151 -Trusts associated with the overseas entity #1452

Merged
merged 3 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/model/trust.page.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ type TrusteeItem = {

type AddTrust = {
addTrust: yesNoResponse;
preRegistrationPeriod: yesNoResponse;
};

export {
Expand Down
37 changes: 27 additions & 10 deletions views/includes/page-templates/add-trust.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ <h1 class="govuk-heading-xl govuk-!-margin-10">{{ title }}</h1>
{% endif %}

{% if reviewedTrustsRows.length > 0 %}
<h3 class="govuk-heading-m">What you have reviewed</h3>
<div class="govuk-summary-card">
<div class="govuk-summary-card__title-wrapper">
<h2 class="govuk-summary-card__title"> What you have reviewed </h2>
</div>
<div class="govuk-summary-card__content">
<dl class="govuk-summary-list">
{{ govukSummaryList({ rows: reviewedTrustsRows }) }}
</dl></div></div>
krenjith-ch marked this conversation as resolved.
Show resolved Hide resolved
{% endif %}

{% if (isUpdate and addedTrusts.length > 0) %}
Expand Down Expand Up @@ -83,20 +89,30 @@ <h3 class="govuk-heading-m">What you have added so far</h3>
{% endfor %}
<form method="post">
{% include "includes/csrf_token.html" %}


<h2 class="govuk-heading-m"> Do you need to add another trust? </h2>
<div class="govuk-inset-text">
<p>Based on the pre-registration statement you provided earlier in this service, you also need to tell us about any beneficiaries from this period, that the entity has not already told us about.</p>
{% include "includes/page-templates/relevant-period.html" %}
</div>

{% set fieldParam = {
label: pageParams.subtitle,
name: 'addTrust',
error: errors.addTrust,
items: [
{
value: 1,
text: "Yes",
attributes: {
"data-event-id": "add-trust-yes-radio-option"
},
checked: formData.addTrust == 1
}, {
value: 1,
text: "Yes - for the current filing period",
attributes: {
"data-event-id": "add-trust-yes-radio-option"
},
checked: formData.addTrust == 1
}, {
value: preRegistrationPeriod,
text: "Yes - for the pre-registration period",
checked: formData.preRegistrationPeriod == 1
},
{
value: 0,
text: "No",
attributes: {
Expand All @@ -106,6 +122,7 @@ <h3 class="govuk-heading-m">What you have added so far</h3>
}
]
} %}

{% include "includes/inputs/radio-input.html" %}
{% if isUpdate %}
{% include "includes/save-and-continue-button.html" %}
Expand Down