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><%= 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">
14 <label><%= t 'user.login.email or username' %></label>
15 <%= text_field_tag "username", params[:username], :maxlength => 255, :tabindex => 1 %>
18 <label><%= t 'user.login.password' %></label>
19 <%= password_field_tag "password", "", :maxlength => 255, :tabindex => 2 %>
20 <p class="form-help deemphasize"><%= link_to t('user.login.lost password link'), :controller => 'user', :action => 'lost_password' %></p>
23 <%= check_box_tag "remember_me", "yes", false, :tabindex => 3 %>
24 <label for="remember_me"><%= t 'user.login.remember' %></label>
27 <%= submit_tag t('user.login.login_button'), :tabindex => 4 %>
30 <p><%= t 'user.login.with openid' %></p>
32 <ul id="login_openid_buttons">
33 <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>
34 <li><%= openid_button "google", "gmail.com" %></li>
35 <li><%= openid_button "yahoo", "me.yahoo.com" %></li>
36 <li><%= openid_button "myopenid", "myopenid.com" %></li>
37 <li><%= openid_button "wordpress", "wordpress.com" %></li>
38 <li><%= openid_button "aol", "aol.com" %></li>
42 <fieldset id="login_openid_url">
43 <label><%= raw t 'user.login.openid', :logo => openid_logo %></label>
44 <%= url_field_tag("openid_url", "", { :maxlength => 255, :tabindex => 3, :class => "openid_url" }) %>
45 <span class="minorNote">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
47 <fieldset id="remember_me_openid">
48 <label for="remember_me"><%= t 'user.login.remember' %></label>
49 <%= check_box_tag "remember_me", "yes", false, :tabindex => 5 %>
52 <%= submit_tag t('user.login.login_button'), :tabindex => 6, :id => "login_openid_submit" %>
57 <script type="text/javascript">
58 $(document).ready(function() {
59 $("#openid_open_url").click(function() {
60 $("#openid_url").val("http://");
61 $("#login_openid_buttons").hide();
62 $("#login_openid_url").show();
63 $("#login_openid_submit").show();
66 $(".openid_button").click(function() {
67 $("#openid_url").val($(this).attr("data-url"));
68 $("#login_form").submit();
71 $("#login_openid_url").hide();
72 $("#login_openid_submit").hide();