1 <% content_for :head do %>
2 <%= javascript_include_tag "login" %>
5 <% content_for :heading do %>
6 <h1><%= t 'user.login.heading' %></h1>
10 <%= form_tag({ :action => "login" }, { :id => "login_form" }) do %>
11 <%= hidden_field_tag('referer', h(params[:referer])) %>
13 <p class='deemphasize'><%= t 'user.login.no account' %> <%= link_to t('user.login.register now'), :action => :new, :referer => params[:referer] %></p>
15 <div id="loginForm" class="standard-form">
18 <div class="form-row">
19 <label for="username" class="standard-label">
20 <%= t 'user.login.email or username' %>
22 <%= text_field_tag "username", params[:username], :tabindex => 1 %>
24 <div class="form-row">
25 <label for="password" class="standard-label">
26 <%= t 'user.login.password' %>
28 <%= password_field_tag "password", "", :tabindex => 2 %>
30 <span class="form-help deemphasize">
31 <%= link_to t('user.login.lost password link'), :controller => 'user', :action => 'lost_password' %>
36 <%= check_box_tag "remember_me", "yes", params[:remember_me] == "yes", :tabindex => 3 %>
37 <label for="remember_me" class="standard-label">
38 <%= t 'user.login.remember' %>
40 <%= submit_tag t('user.login.login_button'), :tabindex => 4 %>
43 <fieldset class='form-divider'>
45 <p class='standard-label'><%= t 'user.login.with external' %></p>
47 <ul class='clearfix' id="login_auth_buttons">
48 <li><%= link_to image_tag("openid.png", :alt => t("user.login.auth_providers.openid.title")), "#", :id => "openid_open_url", :title => t("user.login.auth_providers.openid.title") %></li>
49 <% if defined?(GOOGLE_AUTH_ID) -%>
50 <li><%= auth_button "google", "google" %></li>
52 <% if defined?(FACEBOOK_AUTH_ID) -%>
53 <li><%= auth_button "facebook", "facebook" %></li>
55 <% if defined?(WINDOWSLIVE_AUTH_ID) -%>
56 <li><%= auth_button "windowslive", "windowslive" %></li>
58 <li><%= auth_button "yahoo", "openid", :openid_url => "yahoo.com" %></li>
59 <li><%= auth_button "wordpress", "openid", :openid_url => "wordpress.com" %></li>
60 <li><%= auth_button "aol", "openid", :openid_url => "aol.com" %></li>
63 <div id='login_openid_url' class='form-row'>
64 <label for='openid_url' class="standard-label"><%= raw t 'user.login.openid', :logo => openid_logo %></label>
65 <%= text_field_tag("openid_url", "", { :tabindex => 3, :class => "openid_url" }) %>
66 <span class="minorNote">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
69 <div class='form-row'>
70 <%= check_box_tag "remember_me_openid", "yes", false, :tabindex => 5 %>
71 <label class="standard-label" for="remember_me_openid"><%= t 'user.login.remember' %></label>
74 <%= submit_tag t('user.login.login_button'), :tabindex => 6, :id => "login_openid_submit" %>