<% content_for :head do %> <%= javascript_include_tag "application","authentication_global","validate_login" %> <%= stylesheet_link_tag "authentication_global",:media => "all" %> <% end %>

<%= t(:sign_in,:default => "Please Sign in") %>

<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<%= f.label :email %>
<%= f.email_field :email %>
<%= f.label :password %>
<%= f.password_field :password %>
<% if devise_mapping.rememberable? -%>
<%= f.check_box :remember_me %>
<%= f.label :remember_me %>
<%= link_to "Forgot your password?", new_password_path(resource_name) ,:style => "margin-right: 5px;" %>
<% end -%>
<%= f.submit "Sign in" ,:class => "button"%><%= image_tag "/assets/ajax-loader.gif",:id => "login_loader",:style => "display:none;padding-left:10px;" %>
<% if User.all.empty? %> <%= link_to "First User" , "/mcms/first_user" %> <% end %>
<% end %>