]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/login.html.erb
Merge branch 'master' into openid
[rails.git] / app / views / user / login.html.erb
index 0740317966975dcd55c0a96f7a53ed26a31bbbd6..1cdb8511fe4e994bb175c6f285f6a4ea2c12f03d 100644 (file)
       <table>
         <tr>
           <td class="fieldName"><label for="user_email"><%= t 'user.login.email or username' %></label></td>
-          <td><%= text_field(:user, :email, { :value => "", :size => 28, :maxlength => 255, :tabindex => 1 }) %></td>
+          <td><%= text_field_tag("username", "", { :size => 28, :maxlength => 255, :tabindex => 1 }) %></td>
         </tr>
         <tr>
           <td class="fieldName"><label for="user_password"><%= t 'user.login.password' %></label></td>
-          <td><%= password_field(:user, :password, { :value => "", :size => 28, :maxlength => 255, :tabindex => 2 }) %></td>
+          <td><%= password_field_tag("password", "", { :size => 28, :maxlength => 255, :tabindex => 2 }) %></td>
         </tr>
         <tr>
           <td></td>
       <div id="openid_buttons">
         <%=
           link_to_function(image_tag("openid_large.png", :alt => t("user.login.openid_providers.openid.title")), nil, :title => t("user.login.openid_providers.openid.title")) do |page|
-            page[:login_form][:user_openid_url].value = "http://"
+            page[:login_form][:openid_url].value = "http://"
             page[:openid_buttons].hide
             page[:openid_url].show
             page[:openid_url_hint].show
             page[:openid_submit].show
+            page[:remember_me_label].removeClassName("nowrap")
           end
         %>
         <%= openid_button "yahoo", "yahoo.com" %>
@@ -57,7 +58,7 @@
           <td class="fieldName">
             <%= t 'user.login.openid', :logo => openid_logo %>
           </td>
-          <td><%= text_field(:user, :openid_url, { :size => 28, :maxlength => 255, :tabindex => 3, :class => "openid_url" }) %></td>
+          <td><%= text_field_tag("openid_url", "", { :size => 28, :maxlength => 255, :tabindex => 3, :class => "openid_url" }) %></td>
         </tr>
         <tr id="openid_url_hint">
           <td></td>
@@ -66,7 +67,7 @@
           </td>
         </tr>
         <tr>
-          <td class="fieldName nowrap"><label for="remember_me"><%= t 'user.login.remember' %></label></td>
+          <td class="fieldName nowrap" id="remember_me_label"><label for="remember_me"><%= t 'user.login.remember' %></label></td>
           <td width="100%"><%= check_box_tag "remember_me", "yes", false, :tabindex => 5 %></td>
         </tr>
       </table>