]> git.openstreetmap.org Git - rails.git/blob - app/views/confirmations/confirm.html.erb
Localisation updates from https://translatewiki.net.
[rails.git] / app / views / confirmations / confirm.html.erb
1 <% content_for :heading_class, "pb-0" %>
2 <% content_for :heading do %>
3   <div class='header-illustration confirm-main'>
4     <h1><%= t ".heading" %></h1>
5   </div>
6 <% end %>
7
8 <% if params[:confirm_string] %>
9   <% content_for :head do %>
10     <%= javascript_include_tag "user" %>
11   <% end %>
12
13   <% content_for(:content_class) { "user_confirm" } %>
14
15   <p><%= t ".press confirm button" %></p>
16
17   <%= bootstrap_form_tag :html => { :id => "confirm" } do |f| %>
18     <%= f.hidden_field :display_name, :value => params[:display_name] %>
19     <%= f.hidden_field :confirm_string, :value => params[:confirm_string] %>
20     <%= f.hidden_field :referer, :value => params[:referer] %>
21     <%= f.primary t(".button") %>
22   <% end %>
23 <% else %>
24   <h1>
25     <%= t ".introduction_1" %>
26     <span class="text-body-secondary">
27       <%= t ".introduction_2" %>
28     </span>
29   </h1>
30
31   <p class='text-body-secondary'>
32     <%= t ".if_need_resend" %>
33   </p>
34   <%= bootstrap_form_tag :url => url_for(:action => "confirm_resend") do |f| %>
35     <%= f.submit t(".resend_button"), :class => "btn btn-outline-primary" %>
36   <% end %>
37 <% end %>