<% if flash[:alert] %>
<%= flash[:alert] %>
<% end %> <%= form_for(@session, as: :session, url: signin_path, method: :post, html: { id: 'log-in-form' }) do |f| %>
<%= f.label :username, t('.user_or_email'), class: 'control-label' %>
<%= f.text_field :username, size: 40, maxlength: 200, class: 'span3' %>
<%= f.label :password, t('.password'), :class => 'control-label' %>
<%= f.password_field :password, size: 40, maxlength: 200, class: 'span3' %>
<%= f.submit t('.signin'), class: 'btn btn-primary' %>
<% end %>