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

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

<%= form_for(:team, as: resource_name, url: users_complete_sign_up_provider_path, html: { id: "sign-up-provider-form" } ) do |f| %> <%= hidden_field_tag :user, params['user'] %> <% if Rails.configuration.x.new_team_on_signup %>
<%= f.label :name, t('users.registrations.new.team_name_label') %> <%= f.text_field :name, autofocus: true, class: 'form-control', placeholder: t('users.registrations.new.team_name_placeholder') %>
<% end %>
<%= f.submit 'Sign up', class: 'btn btn-primary' %>
<% end %>
<%= render 'users/shared/links' %>
<% if @team && @team.errors.present? %> <% form_errors = {} %> <% @team.errors.each do |err, msg| %> <% form_errors[err] = [msg] %> <% end %> <%= javascript_include_tag 'users/registrations/new_with_provider', nonce: true %> <% end %>