<% if @failed %>
<%= t(:signin_failure) %>
<% else %>
<%= t(:signin_please) %>
<% end %>
<% 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| %>
<% end %>