1 <script type="text/javascript">
2 function openid_signin(provider)
4 if (provider == 'google') {
5 document.forms[0].user_openid_url.value="gmail.com";
6 document.forms[0].submit();
7 } else if (provider == 'yahoo') {
8 document.forms[0].user_openid_url.value="yahoo.com";
9 document.forms[0].submit();
10 } else if (provider == 'myopenid') {
11 document.forms[0].user_openid_url.value="myopenid.com";
12 document.forms[0].submit();
13 } else if (provider == 'wordpress') {
14 document.forms[0].user_openid_url.value="wordpress.com";
15 document.forms[0].submit();
16 } else if (provider == 'myspace') {
17 document.forms[0].user_openid_url.value="myspace.com";
18 document.forms[0].submit();
19 } else if (provider == 'openid') {
20 document.forms[0].user_openid_url.value="http://";
26 <h1><%= t 'user.login.heading' %></h1>
28 <p><%= t 'user.login.please login', :create_user_link => link_to(t('user.login.create_account'), :controller => 'user', :action => 'new', :referer => params[:referer]) %></p>
30 <% form_tag :action => 'login' do %>
31 <%= hidden_field_tag('referer', h(params[:referer])) %>
32 <div style="position: relative;">
33 <div class="loginBox">
34 <h3> <%= t 'user.login.username_heading' %></h3>
35 <table id="loginForm" width="100%">
36 <tr><td class="fieldName"><%= t 'user.login.email or username' %></td><td><%= text_field('user', 'email',{:value => "", :size => 28, :maxlength => 255, :tabindex => 1}) %></td></tr>
37 <tr><td class="fieldName"><%= t 'user.login.password' %></td><td><%= password_field('user', 'password',{:value => "", :size => 28, :maxlength => 255, :tabindex => 2}) %></td></tr>
38 <tr><td></td><td> <span class="minorNote">(<%= link_to t('user.login.lost password link'), :controller => 'user', :action => 'lost_password' %>)</span></td></tr>
41 <div style="float:left; width: 20px; padding: 10px;">
44 <div class="loginBox">
45 <h3><%= t 'user.login.openid_heading' %></h3>
46 <table id="loginForm" width="100%">
48 <td class="fieldName">
49 <%= image_tag "openid-16x16.gif", :alt => t('user.login.openid_logo_alt') %>
50 <%= t 'user.login.openid' %>
52 <td><%= text_field('user', 'openid_url',{:size => 28, :maxlength => 255, :tabindex => 3}) %></td>
57 <span class="minorNote">
58 (<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)
63 <a href="javascript: openid_signin('openid');" title="<%= h(t 'user.login.openid_providers.openid.title') %>">
64 <%= image_tag "openid_logo.png", :alt => t('user.login.openid_providers.openid.title') %>
66 <a href="javascript: openid_signin('yahoo');" title="<%= h(t 'user.login.openid_providers.yahoo.title') %>">
67 <%= image_tag "yahoo.png", :alt => t('user.login.openid_providers.yahoo.alt') %>
69 <a href="javascript: openid_signin('google');" title="<%= h(t 'user.login.openid_providers.google.title') %>">
70 <%= image_tag "google.png", :alt => t('user.login.openid_providers.google.alt') %>
72 <a href="javascript: openid_signin('myopenid');" title="<%= h(t 'user.login.openid_providers.myopenid.title') %>">
73 <%= image_tag "myopenid.png", :alt => t('user.login.openid_providers.myopenid.alt') %>
75 <a href="javascript: openid_signin('wordpress');" title="<%= h(t 'user.login.openid_providers.wordpress.title') %>">
76 <%= image_tag "wordpress.png", :alt => t('user.login.openid_providers.wordpress.alt') %>
78 <a href="javascript: openid_signin('myspace');" title="<%= h(t 'user.login.openid_providers.myspace.title') %>">
79 <%= image_tag "myspace.png", :alt => t('user.login.openid_providers.myspace.alt') %>
83 <div style="clear: both">
84 <table id="loginForm">
85 <tr><td class="fieldName"><label for="remember_me"><%= t 'user.login.remember' %></label></td><td><%= check_box_tag "remember_me", "yes", false, :tabindex => 3 %></td><td align=right><%= submit_tag t('user.login.login_button'), :tabindex => 3 %></td></tr>