Skip to content

Commit

Permalink
Move defendant and certification out of claim file
Browse files Browse the repository at this point in the history
  • Loading branch information
Katy600 committed Dec 4, 2024
1 parent afe746d commit a3529f2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
18 changes: 0 additions & 18 deletions app/views/shared/_claim.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
- if claim.certification.present?
= render partial: 'shared/certification', locals: { claim: claim }

.govuk-summary-card
.govuk-summary-card__title-wrapper
%h2.govuk-summary-card__title
Expand Down Expand Up @@ -29,18 +26,3 @@
- if claim&.requires_retrial_dates?
= render partial: 'shared/claim_retrial_details', locals: { claim: claim }
= render partial: 'shared/main_hearing_date_details', locals: {claim: claim}

- if claim.defendants.any?
%h2.govuk-heading-l
= t('external_users.claims.defendants.defendant_fields.defendant_details')

= render partial: 'shared/claim_defendants', locals: { defendants: claim.defendants }

- else
.govuk-grid-row
.govuk-grid-column-two-thirds
%p.govuk-body
= t('.no_defendant')

- unless claim.fixed_fee_case?
= render partial: 'external_users/claims/offence_details/summary', locals: { claim: claim }
19 changes: 19 additions & 0 deletions app/views/shared/_claim_accordion.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,28 @@

%h2.govuk-heading-l
= t('.h2_basic_info')

- if claim.certification.present?
= render partial: 'shared/certification', locals: { claim: claim }

.js-accordion__panel
= render partial: 'shared/claim', locals: { claim: claim, hide_totals: true }

- if claim.defendants.any?
%h2.govuk-heading-l
= t('external_users.claims.defendants.defendant_fields.defendant_details')

= render partial: 'shared/claim_defendants', locals: { defendants: claim.defendants }

- else
.govuk-grid-row
.govuk-grid-column-two-thirds
%p.govuk-body
= t('.no_defendant')

- unless claim.fixed_fee_case?
= render partial: 'external_users/claims/offence_details/summary', locals: { claim: claim }

%h2.govuk-heading-l
= t('.h2_evidence')
.js-accordion__panel
Expand Down

0 comments on commit a3529f2

Please sign in to comment.