-
Notifications
You must be signed in to change notification settings - Fork 166
LG-16086 Add address, ssn, and verify info to IPP passport flow #12134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,10 @@ def show | |
| analytics.idv_in_person_proofing_passport_visited(**analytics_arguments) | ||
| end | ||
|
|
||
| def update | ||
| redirect_to idv_in_person_address_path | ||
|
||
| end | ||
|
|
||
| def extra_view_variables | ||
| { | ||
| form:, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| <div class="grid-row grid-gap grid-gap-2 padding-bottom-1 padding-top-1 border-bottom border-primary-light"> | ||
| <dl class='grid-col-fill margin-y-0'> | ||
| <div class="padding-y-1"> | ||
| <h2 class="h4 margin-y-0"><%= t('headings.residential_address') %></h2> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.address1') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:address1] %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.address2') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:address2].presence %> </dd> | ||
|
||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.city') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:city] %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.state') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:state] %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.zipcode') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:zipcode] %> </dd> | ||
| </div> | ||
| </dl> | ||
| <div class='grid-auto'> | ||
| <%= link_to( | ||
| t('idv.buttons.change_label'), | ||
| idv_in_person_address_url, | ||
| 'aria-label': t('idv.buttons.change_address_label'), | ||
| ) %> | ||
| </div> | ||
| </div> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <div class="grid-row grid-gap grid-gap-2 padding-top-1"> | ||
| <div class='grid-col-fill'> | ||
| <div class="padding-y-1"> | ||
| <h2 class="h4 margin-y-0"><%= t('headings.ssn') %></h2> | ||
| </div> | ||
| <%= t('idv.form.ssn') %>: | ||
| <%= render( | ||
| 'shared/masked_text', | ||
| text: SsnFormatter.format(@ssn), | ||
| masked_text: SsnFormatter.format_masked(@ssn), | ||
| accessible_masked_text: t( | ||
| 'idv.accessible_labels.masked_ssn', | ||
| first_number: @ssn[0], | ||
| last_number: @ssn[-1], | ||
| ), | ||
| toggle_label: t('forms.ssn.show'), | ||
| ) %> | ||
| </div> | ||
| <div class='grid-auto'> | ||
| <%= link_to( | ||
| t('idv.buttons.change_label'), | ||
| idv_in_person_ssn_url, | ||
| 'aria-label': t('idv.buttons.change_ssn_label'), | ||
| ) %> | ||
| </div> | ||
| </div> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| <div class="grid-row grid-gap grid-gap-2 padding-bottom-1 border-bottom border-primary-light"> | ||
| <dl class="grid-col-fill margin-y-0"> | ||
| <div class="padding-y-1"> | ||
| <h2 class="h4 margin-y-0"><%= t('headings.state_id') %></h2> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.first_name') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:first_name] %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.last_name') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:last_name] %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.dob') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> | ||
| <%= I18n.l(Date.parse(@pii[:dob]), format: I18n.t('time.formats.event_date')) %> | ||
| </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.issuing_state') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:state_id_jurisdiction] %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.id_number') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:state_id_number] %> </dd> | ||
| </div> | ||
| <div class="margin-top-105"> | ||
| <dt class="display-inline"> <%= t('idv.form.address1') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:identity_doc_address1] %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.address2') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:identity_doc_address2].presence %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.city') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:identity_doc_city] %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.state') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:identity_doc_address_state] %> </dd> | ||
| </div> | ||
| <div> | ||
| <dt class="display-inline"> <%= t('idv.form.zipcode') %>: </dt> | ||
| <dd class="display-inline margin-left-0"> <%= @pii[:identity_doc_zipcode] %> </dd> | ||
| </div> | ||
| </dl> | ||
| <div class='grid-auto'> | ||
| <%= link_to( | ||
| idv_in_person_state_id_url, | ||
| class: 'usa-button usa-button--unstyled padding-y-1', | ||
| 'aria-label': t('idv.buttons.change_state_id_label'), | ||
| ) { t('idv.buttons.change_label') } %> | ||
| </div> | ||
| </div> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -449,6 +449,8 @@ | |
| as: :in_person_ready_to_verify | ||
| post '/in_person/usps_locations' => 'in_person/usps_locations#index' | ||
| put '/in_person/usps_locations' => 'in_person/usps_locations#update' | ||
| get '/in_person/passport' => 'in_person/passport#show' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @shanechesnutt-ft Show is a dup. I will clean it up in my branch #12135 |
||
| put '/in_person/passport' => 'in_person/passport#update' | ||
| get '/in_person/state_id' => 'in_person/state_id#show' | ||
| put '/in_person/state_id' => 'in_person/state_id#update' | ||
| get '/in_person/address' => 'in_person/address#show' | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻