openaustralia/publicwhip

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

Summary

Maintainability
Test Coverage
- content_for :title, 'Password reset'

.thin-page
  %h1.long-title= yield :title

  %p Enter your email and we’ll send you intructions to reset your password

  = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
    = devise_error_messages!
    .form-group
      = f.label :email
      = f.email_field :email, autofocus: true, class: "form-control", required: "required"

    = f.submit "Reset password", class: "btn btn-primary btn-wide"

  %ul.form-secondary.nav.nav-pills
    %li= link_to 'Back to log in', new_user_session_path, class: "btn-xs"