Sign in

<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), role: "form") do |f| %>
<%= f.label :username %>
<%= f.text_field :username, :autofocus => true, class: "form-control" %>
<%= f.label :password %>
<%= f.password_field :password, class: "form-control" %>
<% if devise_mapping.rememberable? -%>
<%= f.check_box :remember_me %> <%= f.label :remember_me %>
<% end -%>
<%= f.submit "Sign in", class: "btn btn-primary" %>
<% end %> <%= render "devise/shared/links" %>