-
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.
[CRIMAPP-992] Add passporting benefit partner section (#618)
* Add passporting benefit partner section * Fix linting errors * WIP update application details to add partner * WIP add partner to content * Add partner trust fund, premium bonds and employment * Add income payments and income benefits * Update schema version * Add partner journey feature flag
- Loading branch information
Showing
52 changed files
with
926 additions
and
120 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
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
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
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
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
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
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
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
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
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
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
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
1 change: 1 addition & 0 deletions
1
app/views/casework/crime_applications/_outgoings_details.html.erb
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
98 changes: 98 additions & 0 deletions
98
app/views/casework/crime_applications/_partner_details.html.erb
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,98 @@ | ||
<% if applicant.has_partner == 'yes' %> | ||
<%= govuk_summary_card(title: label_text(:partner_details)) do %> | ||
<dl class="govuk-summary-list"> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:relationship_to_client) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<%= t(applicant.relationship_to_partner, scope: 'values.relationship_to_client') %> | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:first_name) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<%= partner.first_name %> | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:last_name) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<%= partner.last_name %> | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:other_names) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<%= partner.other_names.presence || t(:not_provided, scope: 'values') %> | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:date_of_birth) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<%= l partner.date_of_birth, format: :compact %> | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:national_insurance_number) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<%= nino.presence || t(:not_provided, scope: 'values') %> | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:involvement_in_case) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<%= t(partner.involvement_in_case, scope: 'values.involvement_in_case')%> | ||
</dd> | ||
</div> | ||
<% if partner.involvement_in_case == 'codefendant' %> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:conflict_of_interest) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<%= t(partner.conflict_of_interest, scope: 'values.conflict_of_interest') %> | ||
</dd> | ||
</div> | ||
<% end %> | ||
<% if partner.has_same_address_as_client.present? %> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:has_same_address_as_client) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<%= t(partner.has_same_address_as_client, scope: 'values') %> | ||
</dd> | ||
</div> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
<%= label_text(:home_address) %> | ||
</dt> | ||
<dd class="govuk-summary-list__value"> | ||
<% if partner.has_same_address_as_client == 'yes' %> | ||
<% if applicant.home_address %> | ||
<%= render 'address', address: applicant.home_address %> | ||
<% else %> | ||
<%= t(:no_home_address, scope: 'values') %> | ||
<% end %> | ||
<% else %> | ||
<%= render 'address', address: partner.home_address %> | ||
<% end %> | ||
</dd> | ||
</div> | ||
<% end %> | ||
</dl> | ||
<% end %> | ||
<% end %> |
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
Oops, something went wrong.