From e33848091e404c1a64de2b3fe680ce70ae7ccf2a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 3 Sep 2020 23:51:23 +0100 Subject: [PATCH] Convert user confirmation forms to use bootstrap --- app/views/users/confirm.html.erb | 8 ++++---- app/views/users/confirm_email.html.erb | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/users/confirm.html.erb b/app/views/users/confirm.html.erb index 4ea5ac5c5..fde545546 100644 --- a/app/views/users/confirm.html.erb +++ b/app/views/users/confirm.html.erb @@ -12,10 +12,10 @@

<%= t ".press confirm button" %>

- <%= form_tag({}, { :id => "confirm", :class => "standard-form" }) do %> - - - "> + <%= 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 %>

diff --git a/app/views/users/confirm_email.html.erb b/app/views/users/confirm_email.html.erb index ba2726d42..49b279c8f 100644 --- a/app/views/users/confirm_email.html.erb +++ b/app/views/users/confirm_email.html.erb @@ -10,7 +10,7 @@

<%= t ".press confirm button" %>

-<%= form_tag({}, { :id => "confirm", :class => "standard-form" }) do %> - - "> +<%= bootstrap_form_tag :html => { :id => "confirm" } do |f| %> + <%= f.hidden_field :confirm_string, :value => params[:confirm_string] %> + <%= f.primary t(".button") %> <% end %> -- 2.39.5