Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LG-3839 Change SSN and mailing address (#5144)
- Loading branch information
Showing
9 changed files
with
132 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Idv | ||
module Actions | ||
class CancelUpdateSsnAction < Idv::Steps::DocAuthBaseStep | ||
def call | ||
mark_step_complete(:ssn) if flow_session[:pii_from_doc][:ssn] | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<% title t('titles.doc_auth.verify') %> | ||
<%= render 'shared/alert', { | ||
type: 'success', | ||
class: 'margin-bottom-4' | ||
} do %> | ||
<%= t('doc_auth.headings.capture_complete') %> | ||
<% end %> | ||
|
||
<h1> | ||
<%= t('doc_auth.headings.ssn') %> | ||
</h1> | ||
|
||
<p> | ||
<%= t('doc_auth.info.ssn') %> | ||
<%= new_window_link_to(t('doc_auth.instructions.learn_more'), MarketingSite.security_and_privacy_practices_url) %> | ||
</p> | ||
|
||
<%= validated_form_for( | ||
:doc_auth, | ||
url: url_for, | ||
method: :put, | ||
html: { autocomplete: 'off', class: 'margin-top-2' } | ||
) do |f| %> | ||
<div class='clearfix margin-x-neg-1'> | ||
<div class='sm-col sm-col-8 padding-x-1 margin-top-2'> | ||
<!-- maxlength set and includes '-' delimiters to work around cleave bug --> | ||
<%= f.input( | ||
:ssn, | ||
as: :password, | ||
label: t('idv.form.ssn_label_html'), | ||
required: true, | ||
pattern: '^\d{3}-?\d{2}-?\d{4}$', | ||
maxlength: 11, | ||
input_html: { aria: { invalid: false }, class: 'ssn ssn-toggle', value: '' } | ||
) %> | ||
</div> | ||
</div> | ||
|
||
<p><%= flow_session[:error_message] %></p> | ||
|
||
<div class='margin-top-0'> | ||
<button type='submit' class='usa-button usa-button--big usa-button--wide'> | ||
<%= t('forms.buttons.continue') %> | ||
</button> | ||
</div> | ||
<% end %> | ||
<%= render 'idv/doc_auth/start_over_or_cancel', step: 'ssn' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<% title t('titles.doc_auth.verify') %> | ||
|
||
<h1> | ||
<%= t('doc_auth.headings.ssn_update') %> | ||
</h1> | ||
|
||
<p> | ||
<%= t('doc_auth.info.ssn') %> | ||
<%= new_window_link_to(t('doc_auth.instructions.learn_more'), MarketingSite.security_and_privacy_practices_url) %> | ||
</p> | ||
|
||
<%= validated_form_for( | ||
:doc_auth, | ||
url: url_for, | ||
method: :put, | ||
html: { autocomplete: 'off', class: 'margin-top-2' } | ||
) do |f| %> | ||
<div class='clearfix margin-x-neg-1'> | ||
<div class='sm-col sm-col-8 padding-x-1 margin-top-2'> | ||
<!-- maxlength set and includes '-' delimiters to work around cleave bug --> | ||
<%= f.input( | ||
:ssn, | ||
as: :password, | ||
label: t('idv.form.ssn_label_html'), | ||
required: true, | ||
pattern: '^\d{3}-?\d{2}-?\d{4}$', | ||
maxlength: 11, | ||
input_html: { aria: { invalid: false }, class: 'ssn ssn-toggle', value: '' } | ||
) %> | ||
</div> | ||
</div> | ||
|
||
<p><%= flow_session[:error_message] %></p> | ||
|
||
<div class='margin-top-0'> | ||
<button type='submit' class='usa-button usa-button--big usa-button--wide'> | ||
<%= t('forms.buttons.submit.update') %> | ||
</button> | ||
</div> | ||
<% end %> | ||
<%= render 'idv/doc_auth/back', action: 'cancel_update_ssn' %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,5 @@ | ||
<% title t('titles.doc_auth.verify') %> | ||
<%= render 'shared/alert', { | ||
type: 'success', | ||
class: 'margin-bottom-4' | ||
} do %> | ||
<%= t('doc_auth.headings.capture_complete') %> | ||
<% if flow_session['pii_from_doc']['ssn'] %> | ||
<%= render 'idv/doc_auth/ssn_update', flow_session: flow_session %> | ||
<% else %> | ||
<%= render 'idv/doc_auth/ssn_init', flow_session: flow_session %> | ||
<% end %> | ||
|
||
<h1 class='margin-y-0'> | ||
<%= t('doc_auth.headings.ssn') %> | ||
</h1> | ||
|
||
<%= validated_form_for( | ||
:doc_auth, | ||
url: url_for, | ||
method: :put, | ||
html: { autocomplete: 'off', class: 'margin-top-2' } | ||
) do |f| %> | ||
<div class='clearfix margin-x-neg-1'> | ||
<div class='sm-col sm-col-8 padding-x-1 margin-top-2'> | ||
<!-- maxlength set and includes '-' delimiters to work around cleave bug --> | ||
<%= f.input( | ||
:ssn, | ||
as: :password, | ||
label: t('idv.form.ssn_label_html'), | ||
required: true, | ||
pattern: '^\d{3}-?\d{2}-?\d{4}$', | ||
maxlength: 11, | ||
input_html: { aria: { invalid: false }, class: 'ssn ssn-toggle', value: '' } | ||
) %> | ||
</div> | ||
</div> | ||
|
||
<p><%= flow_session[:error_message] %></p> | ||
|
||
<div class='margin-top-0'> | ||
<button type='submit' class='usa-button usa-button--big usa-button--wide'> | ||
<%= t('forms.buttons.continue') %> | ||
</button> | ||
</div> | ||
<% end %> | ||
<%= render 'idv/doc_auth/start_over_or_cancel', step: 'ssn' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters