<%= form_for @admin_user_session, :url => casein_admin_user_session_path do |f| %> <% if @admin_user_session.errors.any? %>
<% @admin_user_session.errors.keys.each do |key| %> <%= (key.to_s.humanize + " ") unless key == :base %> <%= @admin_user_session.errors[key].first %> <% end %>
<% end %> <% if flash[:warning] %>
<%= flash[:warning] %>
<% end %> <% if flash[:notice] %>
<%= flash[:notice] %>
<% end %>
<%= f.text_field :login, :placeholder => "Username", :class => "form-control input-large" %>
<%= f.password_field :password, :placeholder => "Password", :class => "form-control input-large" %>
<%= f.submit "Sign in", :class => "btn btn-success btn-large btn-block" %>
<% end %> <%= form_tag casein_password_reset_url do %> <% end %>