22 lines
545 B
Text
22 lines
545 B
Text
|
|
|
|
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
|
<h3>Sign in</h3>
|
|
|
|
<div><%= f.label :email %>
|
|
<%= f.email_field :email, :autofocus => true %></div>
|
|
|
|
<div><%= f.label :password %>
|
|
<%= f.password_field :password %></div>
|
|
|
|
<% if devise_mapping.rememberable? -%>
|
|
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
|
|
<% end -%>
|
|
|
|
<div><%= f.submit "Sign in" %></div>
|
|
|
|
<%= link_to "Sign up", new_user_path %><br />
|
|
<%= render "devise/shared/links" %>
|
|
<% end %>
|
|
|
|
|