woese/guara-crm

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

Summary

Maintainability
Test Coverage
<% provide(:title, t("sign.in.title")) %>
<h1><%= t("sign.in.title") %></h1>

<div class="row">
  <div class="span6 offset3">
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>

      <%= f.label :email %>
      <%= f.email_field :email %>

      <%= f.label :password %>
      <%= f.password_field :password %>

      <% if devise_mapping.rememberable? -%>
        <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
      <% end -%>

      <%= f.submit t("sign.in.link"), class: "btn btn-large btn-primary" %>
    <% end %>

  </div>
</div>

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