- <div class="loginBox">
- <h3><%= t 'user.login.openid_heading' %></h3>
- <table id="loginForm" width="100%">
- <tr>
- <td class="fieldName">
- <%= image_tag "openid-16x16.gif", :alt => t('user.login.openid_logo_alt') %>
- <%= t 'user.login.openid' %>
- </td>
- <td><%= text_field('user', 'openid_url',{:size => 28, :maxlength => 255, :tabindex => 3}) %></td>
- </tr>
- <tr>
- <td></td>
- <td>
- <span class="minorNote">
- (<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)
- </span>
- </td>
- </tr>
- </table>
- <a href="javascript: openid_signin('openid');" title="<%= h(t 'user.login.openid_providers.openid.title') %>">
- <%= image_tag "openid_logo.png", :alt => t('user.login.openid_providers.openid.title') %>
- </a>
- <a href="javascript: openid_signin('yahoo');" title="<%= h(t 'user.login.openid_providers.yahoo.title') %>">
- <%= image_tag "yahoo.gif", :alt => t('user.login.openid_providers.yahoo.alt') %>
- </a>
- <a href="javascript: openid_signin('google');" title="<%= h(t 'user.login.openid_providers.google.title') %>">
- <%= image_tag "google.gif", :alt => t('user.login.openid_providers.google.alt') %>
- </a><b>
- <a href="javascript: openid_signin('myopenid');" title="<%= h(t 'user.login.openid_providers.myopenid.title') %>">
- <%= image_tag "myopenid.png", :alt => t('user.login.openid_providers.myopenid.alt') %>
- </a>
- <a href="javascript: openid_signin('wordpress');" title="<%= h(t 'user.login.openid_providers.wordpress.title') %>">
- <%= image_tag "wordpress.png", :alt => t('user.login.openid_providers.wordpress.alt') %>
- </a>
- <a href="javascript: openid_signin('myspace');" title="<%= h(t 'user.login.openid_providers.myspace.title') %>">
- <%= image_tag "myspace.png", :alt => t('user.login.openid_providers.myspace.alt') %>
- </a><b>
- </div>
+ <%= submit_tag t('user.login.login_button'), :tabindex => 6, :id => "login_openid_submit" %>
+ <% end %>
+
+ <br clear="all" />
+ </div>
+</div>
+
+<script type="text/javascript">
+function showOpenidUrl() {
+ $("#openid_url").val("http://");
+ $("#login_openid_buttons").hide();
+ $("#login_openid_url").show();
+ $("#login_openid_submit").show();
+}
+
+function submitOpenidUrl(url) {
+ $("#openid_url").val(url);
+ $("#login_form").submit();
+}