1 <% content_for :head do %>
2 <%= javascript_include_tag "user" %>
3 <%= javascript_include_tag "auth_providers" %>
6 <% content_for :heading_class, "p-0 mw-100" %>
8 <% content_for :heading do %>
9 <% if @client_app_name %>
10 <p class="text-center text-body-secondary fs-6 py-2 mb-0 bg-body"><%= t(".signup_to_authorize_html", :client_app_name => @client_app_name) %></p>
13 <div class="header-illustration new-user-main auth-container mx-auto">
14 <ul class="nav nav-tabs position-absolute bottom-0 fs-6 w-100">
16 <%= link_to t("sessions.new.tab_title"), url_for(:action => :new, :controller => :sessions, :referer => @referer), :class => "nav-link" %>
19 <%= link_to t("users.new.tab_title"), "#", :class => "nav-link active" %>
25 <div class="auth-container mx-auto my-0">
26 <% if current_user.auth_uid.nil? %>
27 <div class="text-body-secondary fs-6">
28 <p><strong><%= t ".about.header" %></strong> <%= t ".about.paragraph_1" %></p>
29 <p><%= t ".about.paragraph_2" %></p>
32 <% unless @preferred_auth_provider.nil? %>
33 <%= render :partial => "auth_providers" %>
34 <%= render :partial => "shared/section_divider", :locals => { :text => t(".or") } %>
37 <h4><%= t ".about.welcome" %></h4>
40 <%= bootstrap_form_for current_user, :url => { :action => "create" } do |f| %>
41 <%= hidden_field_tag("referer", h(@referer)) unless @referer.nil? %>
42 <%= hidden_field_tag("email_hmac", h(@email_hmac)) unless @email_hmac.nil? %>
43 <%= f.hidden_field :auth_provider unless current_user.auth_provider.nil? %>
44 <%= f.hidden_field :auth_uid unless current_user.auth_uid.nil? %>
46 <% if current_user.auth_uid.nil? or @email_hmac.nil? or not current_user.errors[:email].empty? %>
47 <%= f.email_field :email, :help => t(".email_help.html",
48 :privacy_policy_link => link_to(t(".email_help.privacy_policy"),
49 t(".email_help.privacy_policy_url"),
50 :title => t(".email_help.privacy_policy_title"),
55 <%= f.hidden_field :email %>
58 <%= f.text_field :display_name, :help => t(".display name description"), :tabindex => 2 %>
60 <% if current_user.auth_uid.nil? %>
63 <%= f.password_field :pass_crypt, :tabindex => 3 %>
66 <%= f.password_field :pass_crypt_confirmation, :tabindex => 4 %>
71 <p class="mb-3 text-body-secondary fs-6"><%= t(".by_signing_up.html",
72 :tou_link => link_to(t("layouts.tou"),
73 "https://wiki.osmfoundation.org/wiki/Terms_of_Use",
75 :privacy_policy_link => link_to(t(".by_signing_up.privacy_policy"),
76 t(".by_signing_up.privacy_policy_url"),
77 :title => t(".by_signing_up.privacy_policy_title"),
79 :contributor_terms_link => link_to(t(".by_signing_up.contributor_terms"),
80 t(".by_signing_up.contributor_terms_url"),
81 :target => :new)) %></p>
82 <%= f.form_group do %>
83 <%= f.check_box :consider_pd,
85 :label => t(".consider_pd_html",
86 :consider_pd_link => link_to(t(".consider_pd"),
87 t(".consider_pd_url"),
92 <%= submit_tag(t(".continue"), :name => "continue", :id => "continue", :class => "btn btn-primary", :tabindex => 6) %>
96 <% if current_user.auth_uid.nil? and @preferred_auth_provider.nil? %>
97 <%= render :partial => "shared/section_divider", :locals => { :text => t(".use external auth") } %>
98 <%= render :partial => "auth_providers" %>