]> git.openstreetmap.org Git - rails.git/blob - app/views/users/new.html.erb
Merge remote-tracking branch 'upstream/pull/4747'
[rails.git] / app / views / users / new.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "user" %>
3 <% end %>
4
5 <% content_for :heading_class, "pb-0" %>
6 <% content_for :heading do %>
7   <div class='header-illustration new-user-main'>
8     <h1><%= t ".title" %></h1>
9   </div>
10   <div class='header-illustration new-user-arm d-none d-md-block'></div>
11 <% end %>
12
13 <div class="row">
14   <div class='text-muted col-sm order-sm-2'>
15     <h4><%= t ".about.header" %></h4>
16     <p><%= t ".about.paragraph_1" %></p>
17     <p><%= t ".about.paragraph_2" %></p>
18   </div>
19
20   <div class="col-sm">
21     <%= bootstrap_form_for current_user, :url => { :action => "create" } do |f| %>
22       <%= hidden_field_tag("referer", h(@referer)) unless @referer.nil? %>
23
24       <%= f.email_field :email, :tabindex => 1 %>
25       <%= f.email_field :email_confirmation, :help => t(".email_confirmation_help_html",
26                                                         :privacy_policy_link => link_to(t(".privacy_policy"),
27                                                                                         t(".privacy_policy_url"),
28                                                                                         :title => t(".privacy_policy_title"))),
29                                              :tabindex => 2 %>
30
31       <%= f.text_field :display_name, :help => t(".display name description"), :tabindex => 3 %>
32
33       <fieldset class="mb-3" id="auth_field">
34         <label for="user_auth_provider" class="form-label"><%= t(".external auth") %></label>
35         <div class="row">
36           <%= f.select(:auth_provider, Auth.providers, :default => "", :hide_label => true, :wrapper => { :class => "col-auto mb-0" }, :tabindex => 4) %>
37           <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }, :tabindex => 5) %>
38         </div>
39         <small class="form-text text-muted"><%= t ".auth no password" %></small>
40       </fieldset>
41
42       <%= f.password_field :pass_crypt, :tabindex => 6 %>
43       <%= f.password_field :pass_crypt_confirmation, :tabindex => 7 %>
44
45       <div id="auth_prompt">
46         <p><%= link_to t(".use external auth"), "#", :id => "auth_enable" %></p>
47       </div>
48
49       <%= f.primary t(".continue"), :tabindex => 8 %>
50     <% end %>
51   </div>
52 </div>