- <fieldset>
- <div class="form-row">
- <label for='user[pass_crypt]' class="standard-label">
- <%= t ".password" %>
- </label>
- <%= f.password_field(:pass_crypt, :tabindex => 6) %>
- <%= f.error_message_on(:pass_crypt) %>
- </div>
- <div class="form-row">
- <label class="standard-label">
- <%= t ".confirm password" %>
- </label>
- <%= f.password_field(:pass_crypt_confirmation, :tabindex => 7) %>
- <%= f.error_message_on(:pass_crypt_confirmation) %>
+ <fieldset class="mb-3" id="auth_field">
+ <label for="user_auth_provider" class="form-label"><%= t(".external auth") %></label>
+ <div class="row">
+ <%= f.select(:auth_provider, Auth.providers, :default => "", :hide_label => true, :wrapper => { :class => "col-auto mb-0" }, :tabindex => 4) %>
+ <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }, :tabindex => 5) %>
+ </div>
+ <small class="form-text text-muted"><%= t ".auth no password" %></small>
+ </fieldset>
+
+ <%= f.password_field :pass_crypt, :tabindex => 6 %>
+ <%= f.password_field :pass_crypt_confirmation, :tabindex => 7 %>
+
+ <p class="mb-3 text-muted"><%= t(".by_signing_up_html",
+ :tou_link => link_to(t("layouts.tou"),
+ "https://wiki.osmfoundation.org/wiki/Terms_of_Use",
+ :target => :new),
+ :contributor_terms_link => link_to(t(".contributor_terms"),
+ t(".contributor_terms_url"),
+ :target => :new)) %></p>
+
+ <div class="mb-3">
+ <%= submit_tag(t(".continue"), :name => "continue", :id => "continue", :class => "btn btn-primary", :tabindex => 8) %>