18F/identity-idp

View on GitHub
app/views/forgot_password/show.html.erb

Summary

Maintainability
Test Coverage
<% self.title = t('titles.verify_email') %>

<% if @resend.present? %>
  <%= render 'forgot_password/resend_alert' %>
<% end %>

<%= render PageHeadingComponent.new.with_content(t('headings.verify_email')) %>

<p><%= t('notices.forgot_password.first_paragraph_start') %>
   <strong><%= @email %></strong>
   <%= t('notices.forgot_password.first_paragraph_end') %>
</p>

<div class="width-10">
  <hr class="margin-y-4 border-width-05 border-info">
</div>

<%= simple_form_for(
      @password_reset_email_form,
      url: user_password_path,
      html: { class: 'margin-bottom-2' },
    ) do |f| %>
  <%= f.input :email, as: :hidden %>
  <%= f.input :resend, as: :hidden %>
  <p><%= t('notices.forgot_password.no_email_sent_explanation_start') %>
  <%= f.button :button, t('links.resend'), class: 'usa-button--unstyled margin-left-05' %></p>
  <p><%= t('instructions.forgot_password.close_window') %></p>
<% end %>