]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/users/confirm.html.erb
Prefer keyword arguments when method has optional boolean arguments
[rails.git] / app / views / users / confirm.html.erb
index 3a2e125789a66e818a843ea58d0ba3dff0eaec07..fde54554662b797b12b49863ddc69a189539f92d 100644 (file)
 
   <p><%= t ".press confirm button" %></p>
 
-  <%= 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 ".button" %>">
+  <%= bootstrap_form_tag :html => { :id => "confirm" } do |f| %>
+    <%= f.hidden_field :display_name, :value => params[:display_name] %>
+    <%= f.hidden_field :confirm_string, :value => params[:confirm_string] %>
+    <%= f.primary t(".button") %>
   <% end %>
 <% else %>
   <h1>
     <%= t ".introduction_1" %>
-    <span class="deemphasize">
+    <span class="text-muted">
       <%= t ".introduction_2" %>
     </span>
   </h1>
 
-  <p class='deemphasize'><%= t ".reconfirm_html",
-                               :reconfirm => url_for(:action => "confirm_resend") %></p>
+  <p class='text-muted'><%= t ".reconfirm_html",
+                              :reconfirm => url_for(:action => "confirm_resend") %></p>
 <% end %>