-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display the case number for a representation order taken from MAAT. As this is experimental it can be enabled or disabled by the user.
- Loading branch information
Showing
7 changed files
with
70 additions
and
4 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
37 changes: 37 additions & 0 deletions
37
app/views/shared/_claim_defendant_details_with_maat.html.haml
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,37 @@ | ||
.app-card--defendant | ||
%h4.govuk-heading-s | ||
= t('.defendant', context: index) | ||
|
||
= govuk_summary_list do | ||
= govuk_summary_list_row_collection( t('external_users.claims.defendants.defendant_fields.full_name') ) { defendant.name } | ||
|
||
- if defendant.date_of_birth.present? | ||
= govuk_summary_list_row_collection( t('external_users.claims.defendants.defendant_fields.date_of_birth') ) { defendant.date_of_birth.strftime(Settings.date_format) rescue '' } | ||
|
||
- unless @claim.lgfs? && @claim.interim? | ||
= govuk_summary_list_row_collection( t('external_users.claims.defendants.defendant_fields.judical_apportionment') ) { defendant.order_for_judicial_apportionment == true ? t('global_yes') : t('global_no') } | ||
|
||
|
||
- if defendant.representation_orders.any? | ||
= govuk_table do | ||
= govuk_table_caption do | ||
= t('shared.claim.reporders') | ||
|
||
= govuk_table_thead_collection [t('.date'), | ||
t('external_users.claims.defendants.representation_order_fields.maat_reference_number'), | ||
t('.case_number_from_maat')] | ||
|
||
= govuk_table_tbody do | ||
- defendant.representation_orders.each do | representation_order | | ||
= govuk_table_row do | ||
= govuk_table_td('data-label': t('.date')) do | ||
= representation_order.representation_order_date.strftime(Settings.date_format) rescue '' | ||
|
||
= govuk_table_td('data-label': t('external_users.claims.defendants.representation_order_fields.maat_reference_number')) do | ||
= representation_order.maat_reference | ||
|
||
= govuk_table_td('data-label': t('.case_number_from_maat')) do | ||
= representation_order.maat_details[:case_number] | ||
|
||
- else | ||
= govuk_inset_text(t('.no_reporder')) |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- defendants.each_with_index do | defendant, index | | ||
.govuk-grid-column-one-half | ||
= render partial: 'shared/claim_defendant_details', locals: { defendant: present(defendant, CaseWorkers::DefendantPresenter), index: index += 1 } | ||
= render partial: 'shared/claim_defendant_details', locals: { defendant:, index: index += 1 } |
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,3 @@ | ||
- defendants.each_with_index do | defendant, index | | ||
.govuk-grid-column-one-half | ||
= render partial: 'shared/claim_defendant_details_with_maat', locals: { defendant: present(defendant, CaseWorkers::DefendantPresenter), index: index += 1 } |
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