<% provide(:head_title, t('users.registrations.new.head_title')) %> <% content_for(:body_class, 'sign-up-layout') %>

<%= t 'users.registrations.new.head_title' %>

<%- if Rails.configuration.x.enable_user_registration && Rails.configuration.x.linkedin_signin_enabled && @oauth_authorize != true %>
<%= render partial: "users/shared/linkedin_sign_in_links", locals: { resource_name: resource_name } %> <%= t("devise.sessions.new.or") %>
<% end -%>
<%= form_for(:user, as: resource_name, url: registration_path(resource_name), html: { id: "sign-up-form" } ) do |f| %>
<%= f.label :full_name, t('users.registrations.new.full_name_label') %> <%= f.text_field :full_name, autofocus: true, class: 'form-control sci-input-field' %>
<%= f.label :email, t('users.registrations.new.email_label') %> <%= f.email_field :email, class: 'form-control sci-input-field' %>
<%= f.label :password, t('users.registrations.new.password_label') %> <% if @minimum_password_length %> <%= t('users.registrations.new.minimum_password_length', password_length: @minimum_password_length) %> <% end %>
<%= f.password_field :password, autocomplete: 'off', class: 'form-control sci-input-field' %>
<%= f.label :password_confirmation, t('users.registrations.new.password_confirmation_label') %>
<%= f.password_field :password_confirmation, autocomplete: 'off', class: 'form-control sci-input-field' %>
<% if Rails.configuration.x.new_team_on_signup %>
<%= label :team, :name, t('users.registrations.new.team_name_label') %> <% if @team %> <%= text_field :team, :name, class: 'form-control sci-input-field', value: @team.name, placeholder: t('users.registrations.new.team_name_placeholder') %> <% else %> <%= text_field :team, :name, class: 'form-control sci-input-field', placeholder: t('users.registrations.new.team_name_placeholder') %> <% end %>
<% end %> <%= recaptcha_input_tag %>
<%= f.button 'Sign up', class: 'btn btn-primary sign-up-button' %>
<% end %>
<%= render partial: 'users/shared/links', locals: {linkedin_skip: true} %>
<%= render partial: 'users/sessions/login_disclaimer'%> <% if resource && resource.errors.present? %> <% form_errors = {} %> <% resource.errors.as_json.each do |err, messages| %> <% form_errors[err] = [] %> <% messages.each do |message| %> <% form_errors[err].push(message) %> <% end %> <% end %> <%= javascript_include_tag 'users/registrations/resource_errors' %> <% end %> <% if @team && @team.errors.present? %> <% form_errors = {} %> <% @team.errors.as_json.each do |err, messages| %> <% form_errors[err] = [] %> <% messages.each do |message| %> <% form_errors[err].push(message) %> <% end %> <% end %> <%= javascript_include_tag 'users/registrations/team_errors' %> <% end %>