2014-12-09 17:17:11 +01:00
|
|
|
<h2>Log in</h2>
|
|
|
|
<%= render partial: 'flash' %>
|
|
|
|
|
|
|
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
2014-12-09 18:56:56 +01:00
|
|
|
<%= form_text_field f, :nickname %>
|
2014-12-09 17:17:11 +01:00
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :password %><br />
|
|
|
|
<%= f.password_field :password, autocomplete: "off" %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if devise_mapping.rememberable? -%>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.check_box :remember_me %>
|
|
|
|
<%= f.label :remember_me %>
|
|
|
|
</div>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
<div class="actions">
|
|
|
|
<%= f.submit "Log in" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render "devise/shared/links" %>
|