Skip to content

Commit

Permalink
Updated summary display
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbruce committed Apr 1, 2016
1 parent f84f665 commit 8a221c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app/views/home/summary.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ table
td =t('form_name', scope: 'summary.labels')
td=@summary.form_name_identifier
td.right= link_to "Change", question_path(:form_name)
tr
td =t('date_of_birth', scope: 'summary.labels')
td =@summary.dob_date_of_birth
td.right= link_to "Change", question_path(:dob)
tr
td =t('ni_number', scope: 'summary.labels')
td =@summary.national_insurance_number
td.right= link_to "Change", question_path(:national_insurance)
tr
td =t('date_of_birth', scope: 'summary.labels')
td =@summary.dob_date_of_birth
td.right= link_to "Change", question_path(:dob)
tr
td =t('personal', scope: 'summary.labels')
td =@summary.full_name
Expand Down
5 changes: 3 additions & 2 deletions config/locales/summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ en:
date_of_death: 'Date of death'
claim: 'Claim number'
form_name: 'Form name'
ni_number: 'National insurance number'
personal: 'Personal information'
ni_number: 'National Insurance number'
date_of_birth: 'Date of birth'
personal: 'Full name'
address: 'Address'
contact: 'Contact'
contact_email: 'Email'
Expand Down
6 changes: 4 additions & 2 deletions spec/features/apply_for_help_with_fees_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@
expect(page).to have_content 'Probate caseNo'
expect(page).to have_content 'Claim numberNo'
expect(page).to have_content 'Form nameN1'
expect(page).to have_content 'National insurance numberAB123456A'
expect(page).to have_content 'National Insurance numberAB123456A'
expect(page).to have_content 'Date of birth01/01/1980'
expect(page).to have_content 'Sir Bob Oliver'
expect(page).to have_content 'Foo Street'
expect(page).to have_content 'Bar'
Expand Down Expand Up @@ -522,7 +523,8 @@
expect(page).to have_content 'Probate caseNo'
expect(page).to have_content 'Claim numberNo'
expect(page).to have_content 'Form nameN1'
expect(page).to have_content 'National insurance numberAB123456A'
expect(page).to have_content 'National Insurance numberAB123456A'
expect(page).to have_content 'Date of birth01/01/1980'
expect(page).to have_content 'Sir Bob Oliver'
expect(page).to have_content 'Foo Street'
expect(page).to have_content 'Bar'
Expand Down

0 comments on commit 8a221c3

Please sign in to comment.