]> git.openstreetmap.org Git - rails.git/blob - app/views/user/confirm_email.html.erb
Use javascript to automatically submit confirmation forms
[rails.git] / app / views / user / confirm_email.html.erb
1 <script>
2 $("content").style.display = "none";
3 </script>
4
5 <h1><%= t 'user.confirm_email.heading' %></h1>
6
7 <p><%= t 'user.confirm_email.press confirm button' %></p>
8
9 <form id="confirm" method="post">
10   <input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
11   <input type="submit" name="confirm_action" value="<%= t 'user.confirm_email.button' %>">
12 </form>
13
14 <script>
15 $("confirm").submit();
16 </script>