2018-02-26 18:05:05 +08:00
|
|
|
<% provide(:head_title, t('users.registrations.new.head_title')) %>
|
|
|
|
|
|
|
|
<div class="center-block center-block-narrow">
|
|
|
|
<h2><%= t 'users.registrations.new_with_provider.head_title' %></h2>
|
|
|
|
<div data-hook="sign-up-form-hook">
|
2024-03-12 20:02:44 +08:00
|
|
|
<%= form_for(@team, url: users_complete_sign_up_provider_path, html: { id: "sign-up-provider-form" } ) do |f| %>
|
2018-02-26 18:05:05 +08:00
|
|
|
<% if Rails.configuration.x.new_team_on_signup %>
|
|
|
|
<div class="form-group" id="team_name_form">
|
|
|
|
<%= f.label :name, t('users.registrations.new.team_name_label') %>
|
2018-10-24 19:43:56 +08:00
|
|
|
<%= f.text_field :name, autofocus: true, class: 'form-control',
|
|
|
|
placeholder: t('users.registrations.new.team_name_placeholder') %>
|
2024-03-12 20:02:44 +08:00
|
|
|
<% if @team.errors.present? %>
|
|
|
|
<div class="alert alert-danger" id="alert-flash">
|
|
|
|
<%= @team.errors.full_messages.first %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2018-02-26 18:05:05 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="form-group" data-hook="sign-up-form-submit">
|
|
|
|
<%= f.submit 'Sign up', class: 'btn btn-primary' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|