Log in

<%= form_for(@session, :as => :session, :url => login_path, :method => :post, :html => { :id => 'log-in-form'}) do |f| %>
<%= f.label :username, t('.user_or_email') %>
<%= f.text_field :username, :size => 40, :maxlength => 200 %>
<%= f.label :password, t('.password') %>
<%= f.password_field :password, :size => 40, :maxlength => 200 %>

<%= f.submit t('.login') %>

<% end %>