]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/confirm.html.erb
Don't try and show the IP address when there isn't one
[rails.git] / app / views / user / confirm.html.erb
index c7894380cc6c129a5599a1865ecb2687590a287a..f48cd8867db2ed82c29eb51976ba725076fad0a9 100644 (file)
@@ -1,16 +1,17 @@
 <script>
-$("content").style.display = "none";
+$("#content").hide();
 </script>
 
 <h1><%= t 'user.confirm.heading' %></h1>
 
 <p><%= t 'user.confirm.press confirm button' %></p>
 
-<form id="confirm" method="post">
+<%= form_tag({}, { :id => "confirm" }) do %>
+  <input type="display_name" name="confirm_string" value="<%= params[:display_name] %>">
   <input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
   <input type="submit" name="confirm_action" value="<%= t 'user.confirm.button' %>">
-</form>
+<% end %>
 
 <script>
-$("confirm").submit();
+$("#confirm").submit();
 </script>