<% provide(:head_title, t('users.registrations.new.head_title')) %>

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

<%= form_for(:user, as: resource_name, url: registration_path(resource_name), html: { id: "sign-up-form" } ) do |f| %>
<%= f.label :full_name %> <%= f.text_field :full_name, autofocus: true, class: 'form-control' %>
<%= f.label :email %> <%= f.email_field :email, class: 'form-control' %>
<%= f.label :password %> <% if @minimum_password_length %> (<%= @minimum_password_length %> characters minimum) <% end %> <%= f.password_field :password, autocomplete: 'off', class: 'form-control' %>
<%= f.label :password_confirmation %> <%= f.password_field :password_confirmation, autocomplete: 'off', class: 'form-control' %>
<% 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', value: @team.name, placeholder: t('users.registrations.new.team_name_placeholder') %> <% else %> <%= text_field :team, :name, class: 'form-control', placeholder: t('users.registrations.new.team_name_placeholder') %> <% end %> <%= t 'users.registrations.new.team_name_help' %>
<% end %> <%= recaptcha_input_tag %>
<%= f.submit 'Sign up', class: 'btn btn-primary' %>
<% end %>
<%= render 'users/shared/links' %>
<% if resource and not resource.errors.empty? %> <% end %> <% if @team and not @team.errors.empty? %> <% end %>