Move confirmation methods into ConfirmationsController
This commit is contained in:
parent
7a66c6d4eb
commit
094d6c8bb9
12 changed files with 533 additions and 508 deletions
30
app/views/confirmations/confirm.html.erb
Normal file
30
app/views/confirmations/confirm.html.erb
Normal file
|
@ -0,0 +1,30 @@
|
|||
<% 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 %>
|
16
app/views/confirmations/confirm_email.html.erb
Normal file
16
app/views/confirmations/confirm_email.html.erb
Normal file
|
@ -0,0 +1,16 @@
|
|||
<% 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 %>
|
Loading…
Add table
Add a link
Reference in a new issue