-<script type="text/javascript">
-function openid_signin(provider)
-{
- if (provider == 'google') {
- document.forms[0].user_openid_url.value="gmail.com";
- document.forms[0].submit();
- } else if (provider == 'yahoo') {
- document.forms[0].user_openid_url.value="yahoo.com";
- document.forms[0].submit();
- } else if (provider == 'myopenid') {
- document.forms[0].user_openid_url.value="myopenid.com";
- document.forms[0].submit();
- } else if (provider == 'wordpress') {
- document.forms[0].user_openid_url.value="wordpress.com";
- document.forms[0].submit();
- } else if (provider == 'myspace') {
- document.forms[0].user_openid_url.value="myspace.com";
- document.forms[0].submit();
- } else if (provider == 'openid') {
- document.forms[0].user_openid_url.value="http://";
- }
-
-}
-</script>
-
-<h1><%= t 'user.login.heading' %></h1>
-
-<p><%= t 'user.login.please login', :create_user_link => link_to(t('user.login.create_account'), :controller => 'user', :action => 'new', :referer => params[:referer]) %></p>
-
-<% form_tag :action => 'login' do %>
+<div id="login_login">
+<% content_for :heading do %>
+ <h1><%= t 'user.login.heading' %></h1>
+<% end %>
+
+ <%= form_tag({ :action => "login" }, { :id => "login_form" }) do %>