ArturT/Railstom

View on GitHub
app/views/devise/passwords/new.html.erb

Summary

Maintainability
Test Coverage
<h2><%= t('.forgot_your_password', :default => 'Forgot your password?') %></h2>

<%= simple_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.input :email, :required => true, :autofocus => true, placeholder: t('layouts.application.placeholders.email') %>
  </div>

  <div class="form-actions">
    <%= f.button :submit, t('.send_me_reset_password_instructions', :default => "Send me reset password instructions") %>
  </div>
<% end %>

<%= render "devise/shared/links" %>