3 <% content_for :heading do %>
4 <h1><%= t 'user.login.heading' %></h1>
7 <%= form_tag({ :action => "login" }, { :id => "login_form" }) do %>
8 <%= hidden_field_tag('referer', h(params[:referer])) %>
10 <p class='deemphasize'><%= t 'user.login.no account' %> <%= link_to t('user.login.register now'), :action => :new, :referer => params[:referer] %></p>
12 <div id="loginForm" class="standard-form">
15 <div class="form-row">
16 <label class="standard-label">
17 <%= t 'user.login.email or username' %>
19 <%= text_field_tag "username", params[:username], :tabindex => 1 %>
21 <div class="form-row">
22 <label class="standard-label">
23 <%= t 'user.login.password' %>
25 <%= password_field_tag "password", "", :tabindex => 2 %>
27 <p class="form-help deemphasize">
28 <%= link_to t('user.login.lost password link'), :controller => 'user', :action => 'lost_password' %>
33 <%= check_box_tag "remember_me", "yes", false, :tabindex => 3 %>
34 <label for="remember_me" class="standard-label">
35 <%= t 'user.login.remember' %>
37 <%= submit_tag t('user.login.login_button'), :tabindex => 4 %>
40 <fieldset class='form-section'>
42 <p class='standard-label'><%= t 'user.login.with openid' %></p>
44 <ul class='clearfix' id="login_openid_buttons">
45 <li><%= link_to image_tag("openid.png", :alt => t("user.login.openid_providers.openid.title")), "#", :id => "openid_open_url", :title => t("user.login.openid_providers.openid.title") %></li>
46 <li><%= openid_button "google", "gmail.com" %></li>
47 <li><%= openid_button "yahoo", "me.yahoo.com" %></li>
48 <li><%= openid_button "myopenid", "myopenid.com" %></li>
49 <li><%= openid_button "wordpress", "wordpress.com" %></li>
50 <li><%= openid_button "aol", "aol.com" %></li>
53 <div id='login_openid_url' class='form-row'>
54 <label class="standard-label"><%= raw t 'user.login.openid', :logo => openid_logo %></label>
55 <%= url_field_tag("openid_url", "", { :tabindex => 3, :class => "openid_url" }) %>
56 <span class="minorNote">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
59 <div id="remember_me_openid" class='form-row'>
60 <%= check_box_tag "remember_me_openid", "yes", false, :tabindex => 5 %>
61 <label class="standard-label" for="remember_me"><%= t 'user.login.remember' %></label>
64 <%= submit_tag t('user.login.login_button'), :tabindex => 6, :id => "login_openid_submit" %>
74 <script type="text/javascript">
75 $(document).ready(function() {
76 $("#openid_open_url").click(function() {
77 $("#openid_url").val("http://");
78 $("#login_openid_buttons").hide();
79 $("#login_openid_url").show();
80 $("#login_openid_submit").show();
83 $(".openid_button").click(function() {
84 $("#openid_url").val($(this).attr("data-url"));
85 $("#login_form").submit();
88 $("#login_openid_url").hide();
89 $("#login_openid_submit").hide();