]> git.openstreetmap.org Git - rails.git/commitdiff
Standardize submit tags
authorThomas Levine <occurrence@thomaslevine.com>
Tue, 11 Jun 2013 18:45:59 +0000 (14:45 -0400)
committerTom Hughes <tom@compton.nu>
Mon, 8 Jul 2013 08:03:17 +0000 (09:03 +0100)
app/views/user/lost_password.html.erb
app/views/user/new.html.erb
app/views/user/reset_password.html.erb
app/views/user_blocks/edit.html.erb

index 3a7542294009a1b51a5862f097f118d34849cd82..cf7f9b7d0396341757df80b6a3f2f5adf3642288 100644 (file)
@@ -8,6 +8,6 @@
   <div class="standard-form">
     <label><%= t 'user.lost_password.email address' %></label>
     <%= text_field('user', 'email', { :tabindex => 1} ) %>
   <div class="standard-form">
     <label><%= t 'user.lost_password.email address' %></label>
     <%= text_field('user', 'email', { :tabindex => 1} ) %>
-    <input type="submit" value="<%= t'user.lost_password.new password button' %>" tabindex="2">
+    <%= submit_tag t('user.lost_password.new password button'), :tabindex => 2 %>
   </div>
 <% end %>
   </div>
 <% end %>
index 25339c1f407d59b2c8d9d867d863d10589230896..2b113866608224b59eeafbc2825cba0f49ba3212 100644 (file)
@@ -65,8 +65,7 @@
         <%= t 'user.new.openid no password' %>
       </span>
     </fieldset>
         <%= t 'user.new.openid no password' %>
       </span>
     </fieldset>
-
-      <div class="submitButton"><%= submit_tag t('user.new.continue'), :tabindex => 6 %></div>
+    <%= submit_tag t('user.new.continue'), :tabindex => 6 %>
   </div>
 <% end %>
 
   </div>
 <% end %>
 
index 579f24270c80e553081322a1f5146a2f0b7a1a02..3f011a5fda13da714711fa52c6c08beb72c65da3 100644 (file)
@@ -15,6 +15,6 @@
       <label><%= t 'user.reset_password.confirm password' %></label>
       <%= password_field(:user, :pass_crypt_confirmation, {:value => '', :tabindex => 5}) %>
     </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">
+    <%= submit_tag t('user.reset_password.reset'), :tabindex => 6 %>
   </div>
 <% end %>
   </div>
 <% end %>
index 0b928de548084ce449570cce3892e90b80512547..0eee8a6f642a1ee60781bfafbb11da9010ae9039 100644 (file)
@@ -28,4 +28,4 @@
   <p>
     <%= f.submit t('user_block.edit.submit') %>
   </p>
   <p>
     <%= f.submit t('user_block.edit.submit') %>
   </p>
-<% end %>
\ No newline at end of file
+<% end %>