rubycentral/cfp-app

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

Summary

Maintainability
Test Coverage
.row
  .col-sm-12.text-center
    %h2 Sign In With

.row
  = simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|

    .form-inputs
      .col-sm-5.col-centered
        .well.clearfix
          = f.error_notification
          = f.input :email, required: false, autofocus: true, wrapper_html: {class: "col-sm-12"}
          = f.input :password, required: false, wrapper_html: {class: "col-sm-12"}
          = f.input :remember_me, as: :boolean, wrapper: :inline_checkbox if devise_mapping.rememberable?

          .form-group.col-sm-12
            = f.button :submit, "Log in", class: "btn btn-primary"

          .form-group= render "devise/shared/links"