<% content_for :title, "Log in" -%>

Log in

<%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'form-horizontal', role: 'form'}) do |f| %>
<%= f.label :login, class: 'col-md-2 col-md-offset-2 control-label' %>
<%= f.text_field :login, autofocus: true, class: 'form-control' %>
<%= f.label :password, class: 'col-md-2 col-md-offset-2 control-label' %>
<%= f.password_field :password, class: 'form-control' %>
<% if devise_mapping.rememberable? -%>
<% end -%>
<%= f.submit "Log in", class: "btn btn-default" %>
<% end %>
<%= render "devise/shared/links" %>