ProjectEntropy/project-entropy.com

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

Summary

Maintainability
Test Coverage
%section
  .col-md-8.col-sm-offset-2
    = bootstrap_devise_error_messages!
    .panel.panel-default.devise-bs
      .panel-heading
        %h4= t('.resend_unlock_instructions', default: 'Resend unlock instructions')
      .panel-body
        = form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post, html: { role: "form" } }) do |f|
          .form-group
            = f.label :email
            = f.email_field :email, autofocus: true, class: 'form-control'
          = f.submit t('.resend_unlock_instructions', default: 'Resend unlock instructions'), class: 'btn btn-primary'
    = render 'devise/shared/links'