Move confirmation methods into ConfirmationsController

This commit is contained in:
Andy Allan 2021-04-07 16:04:59 +01:00
parent 7a66c6d4eb
commit 094d6c8bb9
12 changed files with 533 additions and 508 deletions

View file

@ -1,30 +0,0 @@
<% content_for :heading do %>
<h1><%= t ".heading" %></h1>
<div class='header-illustration confirm-main'></div>
<% end %>
<% if params[:confirm_string] %>
<% content_for :head do %>
<%= javascript_include_tag "user" %>
<% end %>
<% content_for(:content_class) { "user_confirm" } %>
<p><%= t ".press confirm button" %></p>
<%= 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="text-muted">
<%= t ".introduction_2" %>
</span>
</h1>
<p class='text-muted'><%= t ".reconfirm_html",
:reconfirm => url_for(:action => "confirm_resend") %></p>
<% end %>

View file

@ -1,16 +0,0 @@
<% content_for :head do %>
<%= javascript_include_tag "user" %>
<% end %>
<% content_for(:content_class) { "user_confirm" } %>
<% content_for :heading do %>
<h1><%= t ".heading" %></h1>
<% end %>
<p><%= t ".press confirm button" %></p>
<%= bootstrap_form_tag :html => { :id => "confirm" } do |f| %>
<%= f.hidden_field :confirm_string, :value => params[:confirm_string] %>
<%= f.primary t(".button") %>
<% end %>