ministryofjustice/atet

View on GitHub
app/views/claim_reviews/_claimant.html.slim

Summary

Maintainability
Test Coverage
= render 'answer', section_name: 'claimant', question: 'full_name' do
  = review_claimant_full_name claimant
= render 'answer_address', section_name: 'claimant', question: 'address', value: claimant.address
= render 'answer', section_name: 'claimant', question: 'email_address' do
  = claimant.email_address
= render 'answer', section_name: 'claimant', question: 'date_of_birth' do
  = review_date claimant.date_of_birth
= render 'answer', section_name: 'claimant', question: 'mobile_number' do
  = claimant.mobile_number
= render 'answer', section_name: 'claimant', question: 'gender' do
  - if claimant.gender.present?
    = I18n.t "claims.claimant.gender.options.#{claimant.gender}"
= render 'answer', section_name: 'claimant', question: 'contact_preference' do
  - if claimant.contact_preference.present?
    = t "claims.claimant.contact_preference.options.#{claimant.contact_preference}"
= render 'answer_yes_no', section_name: 'claimant', question: 'allow_video_attendance', value: claimant.allow_video_attendance
= render 'answer', section_name: 'claimant', question: 'telephone_number' do
  = claimant.address_telephone_number
= render 'answer_yes_no', section_name: 'claimant', question: 'is_disabled', value: claimant.has_special_needs