-
Notifications
You must be signed in to change notification settings - Fork 166
LG-6349: Add verify page to IPP flow #6514
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
4e528b6
ba5567b
6fd2b0f
d04dc06
2835214
55474bf
947f4db
ac4fffa
93c4e7d
8317d56
129a474
beeb328
5b3ee22
de63612
b029f11
5b21e99
c2aa758
8d3edf8
6956632
531f98a
6719404
06aa732
3c582b3
19e6010
e8051ec
9d67577
c082fd2
35c05f9
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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| module Idv | ||
| module Actions | ||
sheldon-b marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| module Ipp | ||
| class RedoAddressAction < Idv::Steps::DocAuthBaseStep | ||
sheldon-b marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| def call | ||
| mark_step_incomplete(:address) | ||
NavaTim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end | ||
| end | ||
| end | ||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| module Idv | ||
| module Actions | ||
| module Ipp | ||
| class RedoStateIdAction < Idv::Steps::DocAuthBaseStep | ||
| def call | ||
| mark_step_incomplete(:state_id) | ||
NavaTim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end | ||
| end | ||
| end | ||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| module Idv | ||
| module Actions | ||
| class RedoAddressAction < Idv::Steps::DocAuthBaseStep | ||
| def call | ||
| redirect_to idv_address_url | ||
| end | ||
| end | ||
NavaTim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,13 @@ def call | |
| end | ||
| end | ||
|
|
||
| def extra_view_variables | ||
|
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. what are extra view variables?
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. The flow state machine is like a mini version of a rails controller, so the way a controller assigns |
||
| { | ||
| pii: flow_session[:pii_from_user], | ||
sheldon-b marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| updating_address: flow_session[:pii_from_user].has_key?(:address1), | ||
| } | ||
| end | ||
|
|
||
| private | ||
|
|
||
| def form_submit | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| <%= render 'idv/shared/ssn', flow_session: flow_session, success_alert_enabled: applicant_ssn.blank?, updating_ssn: applicant_ssn %> | ||
| <%= render 'idv/shared/ssn', flow_session: flow_session, success_alert_enabled: !updating_ssn, updating_ssn: updating_ssn %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| <% title t('titles.doc_auth.verify') %> | ||
|
|
||
| <%= render PageHeadingComponent.new.with_content(t('in_person_proofing.headings.address')) %> | ||
| <% if updating_address %> | ||
| <%= render PageHeadingComponent.new.with_content(t('in_person_proofing.headings.update_address')) %> | ||
| <% else %> | ||
| <%= render PageHeadingComponent.new.with_content(t('in_person_proofing.headings.address')) %> | ||
| <% end %> | ||
|
|
||
| <p> | ||
| <%= t('in_person_proofing.body.address.info') %> | ||
|
|
@@ -12,64 +16,70 @@ | |
| html: { autocomplete: 'off' } | ||
| ) do |f| %> | ||
| <%= render ValidatedFieldComponent.new( | ||
| name: :address1, | ||
| form: f, | ||
| input_html: { value: pii[:address1] }, | ||
| label: t('in_person_proofing.form.address.address1'), | ||
| required: true, | ||
| maxlength: 255, | ||
| label_html: { class: 'usa-label' }, | ||
| maxlength: 255, | ||
| name: :address1, | ||
| required: true, | ||
|
Comment on lines
-15
to
+25
Contributor
Author
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. The reason there's so much noise in this file is that I sorted these keys alphabetically in addition to making them pre-populate with whatever values the user previously entered |
||
| ) %> | ||
| <%= render ValidatedFieldComponent.new( | ||
| name: :address2, | ||
| form: f, | ||
| input_html: { value: pii[:address2] }, | ||
| label: t('in_person_proofing.form.address.address2'), | ||
| required: false, | ||
| maxlength: 255, | ||
| label_html: { class: 'usa-label' }, | ||
| maxlength: 255, | ||
| name: :address2, | ||
| required: false, | ||
| ) %> | ||
| <%= render ValidatedFieldComponent.new( | ||
| name: :city, | ||
| form: f, | ||
| input_html: { value: pii[:city] }, | ||
| label: t('in_person_proofing.form.address.city'), | ||
| required: true, | ||
| maxlength: 255, | ||
| label_html: { class: 'usa-label' }, | ||
| maxlength: 255, | ||
| name: :city, | ||
| required: true, | ||
| ) %> | ||
| <%= render ValidatedFieldComponent.new( | ||
| name: :state, | ||
| form: f, | ||
| collection: us_states_territories, | ||
| form: f, | ||
| label: t('in_person_proofing.form.address.state'), | ||
| label_html: { class: 'usa-label' }, | ||
| name: :state, | ||
| prompt: t('in_person_proofing.form.address.state_prompt'), | ||
| required: true, | ||
| label_html: { class: 'usa-label' }, | ||
| selected: pii[:state], | ||
| ) %> | ||
|
|
||
| <div class="tablet:grid-col-6"> | ||
| <%# using :tel for mobile numeric keypad %> | ||
| <%= render ValidatedFieldComponent.new( | ||
| name: :zipcode, | ||
| form: f, | ||
| as: :tel, | ||
| error_messages: { patternMismatch: t('idv.errors.pattern_mismatch.zipcode') }, | ||
| form: f, | ||
| input_html: { value: pii[:zipcode] }, | ||
| label: t('in_person_proofing.form.address.zipcode'), | ||
| required: true, | ||
| pattern: '\d{5}([\-]\d{4})?', | ||
| label_html: { class: 'usa-label' }, | ||
| error_messages: { patternMismatch: t('idv.errors.pattern_mismatch.zipcode') }, | ||
| name: :zipcode, | ||
| pattern: '\d{5}([\-]\d{4})?', | ||
| required: true, | ||
| ) %> | ||
| </div> | ||
|
|
||
| <%= render ValidatedFieldComponent.new( | ||
| name: :same_address_as_id, | ||
| form: f, | ||
| as: :radio_buttons, | ||
| wrapper: :uswds_radio_buttons, | ||
| label: t('in_person_proofing.form.address.same_address'), | ||
| required: true, | ||
| checked: pii[:same_address_as_id], | ||
| collection: [ | ||
| [t('in_person_proofing.form.address.same_address_choice_yes'), true], | ||
| [t('in_person_proofing.form.address.same_address_choice_no'), false], | ||
| ], | ||
| form: f, | ||
sheldon-b marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| label: t('in_person_proofing.form.address.same_address'), | ||
| name: :same_address_as_id, | ||
| required: true, | ||
| wrapper: :uswds_radio_buttons, | ||
| ) %> | ||
|
|
||
| <%= render ButtonComponent.new(big: true, wide: true, class: 'margin-top-1') do %> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| <%= render 'idv/shared/ssn', flow_session: flow_session, success_alert_enabled: false, updating_ssn: applicant_ssn %> | ||
| <%= render 'idv/shared/ssn', flow_session: flow_session, success_alert_enabled: false, updating_ssn: updating_ssn %> |
Uh oh!
There was an error while loading. Please reload this page.