]> git.openstreetmap.org Git - rails.git/commitdiff
Remove tables from password reset form
authorThomas Levine <occurrence@thomaslevine.com>
Tue, 11 Jun 2013 17:17:43 +0000 (13:17 -0400)
committerTom Hughes <tom@compton.nu>
Mon, 8 Jul 2013 08:03:16 +0000 (09:03 +0100)
app/views/user/reset_password.html.erb

index 36dd741fe00fd1d218b893775a3bec44232c6340..579f24270c80e553081322a1f5146a2f0b7a1a02 100644 (file)
@@ -6,11 +6,15 @@
 
 <%= form_tag do %>
 <%= hidden_field_tag(:token, params[:token]) %>
-<table id="loginForm">
-  <tr><td class="fieldName"><%= t 'user.reset_password.password' %></td><td><%= password_field(:user, :pass_crypt, {:value => '', :size => 30, :maxlength => 255, :tabindex => 4}) %></td></tr>
-  <tr><td class="fieldName"><%= t 'user.reset_password.confirm password' %></td><td><%= password_field(:user, :pass_crypt_confirmation, {:value => '', :size => 30, :maxlength => 255, :tabindex => 5}) %></td></tr>
-
-  <tr><td colspan=2>&nbsp;<!--vertical spacer--></td></tr>
-  <tr><td></td><td class="submitButton"><input type="submit" value="<%= t'user.reset_password.reset' %>" tabindex="6"></td></tr>
-</table>
+  <div class="standard-form">
+    <fieldset>
+      <label><%= t 'user.reset_password.password' %></label>
+      <%= password_field(:user, :pass_crypt, {:value => '', :tabindex => 4}) %>
+    </fieldset>
+    <fieldset>
+      <label><%= t 'user.reset_password.confirm password' %></label>
+      <%= password_field(:user, :pass_crypt_confirmation, {:value => '', :tabindex => 5}) %>
+    </fieldset>
+    <input type="submit" value="<%= t'user.reset_password.reset' %>" tabindex="6">
+  </div>
 <% end %>