18F/identity-idp

View on GitHub
app/views/account_reset/recovery_options/show.html.erb

Summary

Maintainability
Test Coverage
<% self.title = t('account_reset.recovery_options.header') %>
<%= render PageHeadingComponent.new.with_content(t('account_reset.recovery_options.header')) %>

<p>
  <%= t('account_reset.recovery_options.help_text', app_name: APP_NAME) %>
</p>

  <%= render ProcessListComponent.new(class: 'margin-y-3') do |c| %>
    <%= c.with_item(heading: t('account_reset.recovery_options.try_method_again')) %>
    <%= c.with_item(heading: t('account_reset.recovery_options.use_device')) do %>
      <p><%= t('account_reset.recovery_options.try_another_device') %></p>
    <% end %>
    <%= c.with_item(heading: t('account_reset.recovery_options.check_saved_credential')) do %>
      <p><%= t('account_reset.recovery_options.check_webauthn_platform_info') %></p>
      <p><%= t('account_reset.recovery_options.use_same_device') %></p>
    <% end %>
  <% end %>

<%= button_to(
      account_reset_recovery_options_cancel_path,
      method: :post,
      class: 'usa-button usa-button--big usa-button--wide margin-bottom-2',
    ) { t('account_reset.request.no_cancel') } %>

<%= link_to(
      t('account_reset.request.yes_continue'),
      account_reset_request_path,
      class: 'usa-button usa-button--unstyled',
    ) %>