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 <div class="header-illustration new-user-main auth-container mx-auto">
10 <ul class="nav nav-tabs position-absolute bottom-0 px-3 fs-6 w-100">
12 <%= link_to t("sessions.new.tab_title"), url_for(:action => :new, :controller => :sessions), :class => "nav-link" %>
15 <%= link_to t("users.new.tab_title"), "#", :class => "nav-link active" %>
21 <div class="auth-container mx-auto my-0">
22 <% if current_user.auth_uid.nil? %>
23 <div class="text-muted fs-6">
24 <p><strong><%= t ".about.header" %></strong> <%= t ".about.paragraph_1" %></p>
25 <p><%= t ".about.paragraph_2" %></p>
28 <h4><%= t ".about.welcome" %></h4>
31 <%= bootstrap_form_for current_user, :url => { :action => "create" } do |f| %>
32 <%= hidden_field_tag("referer", h(@referer)) unless @referer.nil? %>
33 <%= hidden_field_tag("verified_email", h(@verified_email)) unless @verified_email.nil? %>
34 <%= f.hidden_field :auth_provider unless current_user.auth_provider.nil? %>
35 <%= f.hidden_field :auth_uid unless current_user.auth_uid.nil? %>
37 <% if current_user.auth_uid.nil? or not current_user.errors[:email].empty? %>
38 <%= f.email_field :email, :help => t(".email_help_html",
39 :privacy_policy_link => link_to(t(".privacy_policy"),
40 t(".privacy_policy_url"),
41 :title => t(".privacy_policy_title"),
45 <%= f.hidden_field :email %>
48 <%= f.text_field :display_name, :help => t(".display name description"), :tabindex => 2 %>
50 <% if current_user.auth_uid.nil? %>
53 <%= f.password_field :pass_crypt, :tabindex => 3 %>
56 <%= f.password_field :pass_crypt_confirmation, :tabindex => 4 %>
61 <p class="mb-3 text-muted"><%= t(".by_signing_up_html",
62 :tou_link => link_to(t("layouts.tou"),
63 "https://wiki.osmfoundation.org/wiki/Terms_of_Use",
65 :privacy_policy_link => link_to(t(".privacy_policy"),
66 t(".privacy_policy_url"),
67 :title => t(".privacy_policy_title"),
69 :contributor_terms_link => link_to(t(".contributor_terms"),
70 t(".contributor_terms_url"),
71 :target => :new)) %></p>
73 <%= f.form_group do %>
74 <%= f.check_box :consider_pd,
76 :label => t(".consider_pd_html",
77 :consider_pd_link => link_to(t(".consider_pd"),
78 t(".consider_pd_url"),
83 <%= submit_tag(t(".continue"), :name => "continue", :id => "continue", :class => "btn btn-primary", :tabindex => 6) %>
87 <% if current_user.auth_uid.nil? %>
89 <%= render :partial => "auth_providers" %>