Skip to content

Commit

Permalink
Clean up basic info page (#529)
Browse files Browse the repository at this point in the history
**Why**: Small visual and copy changes for Basic information IDV page
  • Loading branch information
hursey013 authored and brendansudol committed Oct 4, 2016
1 parent 9825719 commit c0d7948
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
29 changes: 18 additions & 11 deletions app/views/idv/sessions/new.html.slim
Expand Up @@ -4,16 +4,16 @@
- if @using_mock_vendor
.mt1.mb2.h6.caps.bold = t('idv.messages.sessions.no_pii')

h2.pb0.heading. = t('idv.titles.session.basic')
h2.pb0.heading = t('idv.titles.session.basic')
= simple_form_for(idv_profile_form, url: idv_session_path,
html: { autocomplete: 'off', method: :put, role: 'form' }) do |f|
= f.error_notification
.mb5
.mb3.pb-tiny.border-bottom.border-teal Name
.mb3.pb-tiny.border-bottom.border-teal = t('profile.index.full_name')
= f.input :first_name, label: t('idv.form.first_name'), required: true
= f.input :last_name, label: t('idv.form.last_name'), required: true
.mb4
.mb3.pb-tiny.border-bottom.border-teal Address
.mb3.pb-tiny.border-bottom.border-teal = t('profile.index.address')
= f.input :address1, label: t('idv.form.address1'), required: true
= f.input :address2, label: t('idv.form.address2')
= f.input :city, label: t('idv.form.city'), required: true
Expand All @@ -25,14 +25,21 @@ h2.pb0.heading. = t('idv.titles.session.basic')
= f.input :zipcode, label: t('idv.form.zipcode'), required: true,
pattern: '(\d{5}([\-]\d{4})?)',
input_html: { class: 'zipcode', value: idv_profile_form.zipcode }
.mt0.mb3.pb-tiny.border-bottom.border-teal Other information
= f.input :dob, label: t('idv.form.dob'), required: true,
pattern: '(0[1-9]|1[012])/(0[1-9]|1[0-9]|2[0-9]|3[01])/[0-9]{4}',
input_html: { class: 'dob', value: idv_profile_form.dob.try(:strftime, '%m/%d/%Y'),
'aria-describedby': 'dob-instructs' }
#dob-instructs.hide Must be in mm/dd/yyyy format
= f.input :ssn, label: t('idv.form.ssn'), required: true, pattern: '^\d{3}-?\d{2}-?\d{4}$',
input_html: { class: 'ssn', 'aria-labelledby': 'label-ssn', value: idv_profile_form.ssn }
.mb4
.mt0.mb3.pb-tiny.border-bottom.border-teal = t('profile.index.dob')
= f.input :dob, label: t('idv.form.dob'), required: true,
pattern: '(0[1-9]|1[012])/(0[1-9]|1[0-9]|2[0-9]|3[01])/[0-9]{4}',
input_html: { class: 'dob', value: idv_profile_form.dob.try(:strftime, '%m/%d/%Y'),
'aria-describedby': 'dob-instructs' }
#dob-instructs.hide Must be in mm/dd/yyyy format
.mb4
.mt0.mb3.pb-tiny.border-bottom.border-teal
| #{t('profile.index.ssn')}#{tooltip(t('tooltips.placeholder'))}
= f.input :ssn, label: t('idv.form.ssn'), required: true, pattern: '^\d{3}-?\d{2}-?\d{4}$',
input_html: { class: 'ssn', 'aria-labelledby': 'label-ssn', value: idv_profile_form.ssn },
hint: content_tag(:span, t('idv.form.tin'),
class: 'mt1 h5 blue sans-serif underline hint--top',
tabindex: 0, 'aria-label': t('tooltips.placeholder'))
.mt5
button type='submit' class='btn btn-primary btn-wide' = t('forms.buttons.submit.continue')
.mt1 = link_to t('idv.messages.cancel_link'), idv_cancel_path, class: 'underline'
Expand Down
13 changes: 7 additions & 6 deletions config/locales/en.yml
Expand Up @@ -265,13 +265,14 @@ en:
last_name: Last name
dob: Date of birth
ssn: Social Security Number
tin: Individual Tax Identification Number
finance_unselected: Select an option above...
ccn: Last 8 digits of a credit card
mortgage: Mortgage loan account number
home_equity_line: Home equity line of credit account number
auto_loan: Auto loan account number
address1: Mailing address 1
address2: Mailing address 2 (optional)
address1: Street address 1
address2: Street address 2 (optional)
city: City
state: State
zipcode: ZIP Code
Expand Down Expand Up @@ -356,7 +357,7 @@ en:
review: Review and submit
dupe: "Error: An account may already exist"
session:
basic: First, some basic information
basic: First, tell us about yourself
finance: Next, we need some financial information
phone: What is your phone number?
review: Review and submit
Expand All @@ -377,9 +378,9 @@ en:
profile:
index:
full_name: Full name
address: Address
dob: Date of Birth
ssn: Social Security Number (SSN)
address: Mailing address
dob: Date of birth
ssn: Social Security Number
phone: Phone number
email: Email address
password: Password
Expand Down

0 comments on commit c0d7948

Please sign in to comment.