<% if flash[:danger] %>

<%= flash[:danger] %>

<% else %>

Login to access the admin

<% end %>
<%= bootstrap_form_for @session, url: admin_sessions_path do |f| %> <%= f.email_field :email, hide_label: true, class: 'form-control', placeholder: 'Email' %> <%= f.password_field :password, hide_label: true, class: 'form-control', placeholder: 'Password' %>
<%= link_to 'Forgot Password >>', new_admin_password_reset_url %>
<%= f.submit 'Login', class: 'btn btn-primary pull-right' %>
<% end %>