<% if @failed %><%= t(:signin_try_again) %>

<% end %> <% if @mail_message.present? %><%= @mail_message %>

<% end %> <%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :id => 'loginform', :class => 'form-horizontal' }) do |f| %>
<%= f.text_field :login, :value => cookies['user_id'], :class => 'form-control' %>
<%= f.password_field :password, :class => 'form-control' %> <%= link_to t(:forgot), new_user_password_path, :id => 'forgot_password' %>

<%= f.submit t(:signin), :class => 'btn btn-primary' %>

<% end %>