<% if flash[:notice] %>

<%= flash[:notice] %>

<% end %> <% if flash[:alert] %>

<%= flash[:alert] %>

<% end %> <% if @redirect_url %>

We need you to log in before we can show you the page that you are trying to view.

<% end %> <%= form_tag session_path do %>
<%= label_tag :email, 'Email Address' %>
<%= email_field_tag :email, @email, :autofocus => true, :required => true, :placeholder => 'your@email.com' %>
<%= label_tag :password %>
<%= password_field_tag :password %>
<%= button_tag 'Log in', :name => 'login', :value => 'requested' %> <%= button_tag 'Reset Password', :name => 'reset_password', :value => 'requested', :formaction => reset_password_session_path %> <% if @redirect_url %> <%= hidden_field_tag :redirect_url, @redirect_url %> <% end %>
<% end %>