ministryofjustice/Claim-for-Crown-Court-Defence

View on GitHub
app/views/shared/_evidence_checklist.html.haml

Summary

Maintainability
Test Coverage
.evidence-checklist-read-only
  - if @claim.disk_evidence?
    %h3.govuk-heading-m
      = t('.evidence_address')
    = render partial: 'external_users/claims/supporting_documents/laa_address', locals: { f: @claim }

  %h3.govuk-heading-m
    = t('shared.evidence_checklist.caption')
  - if current_user.persona.is_a? ExternalUser
    %p.form-hint
      = t('.evidence_hint')

  - if @claim.evidence_checklist_ids.empty?
    %p
      = t('.no_evidence')
  - else
    %ul.govuk-list
      - DocType.find_by_ids(@claim.evidence_checklist_ids).each do |dt|
        %li
          = dt.name