app/views/sign_up/completions/show.html.erb
<% self.title = @presenter.heading %>
<div class="text-center">
<%= image_tag(
asset_url('user-signup.svg'),
width: 140,
height: 156,
alt: t('sign_up.completed.smiling_image_alt'),
class: 'margin-bottom-2',
) %>
</div>
<%= render PageHeadingComponent.new(class: 'text-center') do %>
<%= @presenter.heading %>
<% end %>
<p class="margin-top-4 margin-bottom-4">
<%= @presenter.intro.html_safe %>
</p>
<%= render IconListComponent.new(icon: :check_circle, color: :success, class: 'border-bottom border-primary-light') do |c| %>
<% @presenter.pii.each do |attribute_key, attribute_value| %>
<% next if attribute_value.blank? %>
<% c.with_item(class: 'padding-y-2 border-top border-primary-light') do %>
<strong class="display-block">
<%= t("help_text.requested_attributes.#{attribute_key}") %>
</strong>
<% if attribute_value.is_a? Array %>
<ul class="usa-list usa-list--unstyled">
<% attribute_value.each do |item| %>
<li><%= item %></li>
<% end %>
</ul>
<% elsif attribute_key == :social_security_number %>
<%= render(
'shared/masked_text',
text: attribute_value,
masked_text: SsnFormatter.format_masked(attribute_value),
accessible_masked_text: t(
'idv.accessible_labels.masked_ssn',
first_number: attribute_value[0],
last_number: attribute_value[-1],
),
) %>
<% elsif attribute_key == :email && IdentityConfig.store.feature_select_email_to_share_enabled %>
<div class="display-flex flex-justify">
<%= attribute_value.to_s %>
<p class='font-body-2xs text-right'>
<% if @presenter.multiple_emails? %>
<%= link_to t('help_text.requested_attributes.change_email_link'), sign_up_select_email_path %>
<% else %>
<%= link_to t('account.index.email_add'), add_email_path %>
<% end %>
</p>
</div>
<% else %>
<%= attribute_value.to_s %>
<% end %>
<% end %>
<% end %>
<% end %>
<% if !@multiple_factors_enabled %>
<%= render(AlertComponent.new(type: :warning, class: 'margin-bottom-4')) do %>
<%= link_to(
t('mfa.second_method_warning.link'),
authentication_methods_setup_path,
) %>
<%= t('mfa.second_method_warning.text') %>
<% end %>
<% end %>
<%= simple_form_for(:idv_form, url: sign_up_completed_path, html: { class: 'margin-y-5' }) do |f| %>
<%= f.submit t('sign_up.agree_and_continue') %>
<% end %>
<%= render PageFooterComponent.new do %>
<%= link_to t('links.cancel'), sign_up_completed_cancel_path %>
<% end %>