]> git.openstreetmap.org Git - rails.git/blob - app/views/confirmations/confirm.html.erb
Refactor to use a heading class for height when using header-illustrations
[rails.git] / app / views / confirmations / confirm.html.erb
1 <% content_for :heading_class, "header-illustration-heading" %>
2 <% content_for :heading do %>
3   <h1><%= t ".heading" %></h1>
4   <div class='header-illustration confirm-main'></div>
5 <% end %>
6
7 <% if params[:confirm_string] %>
8   <% content_for :head do %>
9     <%= javascript_include_tag "user" %>
10   <% end %>
11
12   <% content_for(:content_class) { "user_confirm" } %>
13
14   <p><%= t ".press confirm button" %></p>
15
16   <%= bootstrap_form_tag :html => { :id => "confirm" } do |f| %>
17     <%= f.hidden_field :display_name, :value => params[:display_name] %>
18     <%= f.hidden_field :confirm_string, :value => params[:confirm_string] %>
19     <%= f.primary t(".button") %>
20   <% end %>
21 <% else %>
22   <h1>
23     <%= t ".introduction_1" %>
24     <span class="text-muted">
25       <%= t ".introduction_2" %>
26     </span>
27   </h1>
28
29   <p class='text-muted'><%= t ".reconfirm_html",
30                               :reconfirm => url_for(:action => "confirm_resend") %></p>
31 <% end %>