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

Sign up

<%= form_for(:user, as: resource_name, url: registration_path(resource_name)) 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" %>
<%= label :organization, :name, t('users.registrations.new.team_name_label') %> <% if @org %> <%= text_field :organization, :name, class: "form-control", value: @org.name %> <% else %> <%= text_field :organization, :name, class: "form-control" %> <% end %> <%= t 'users.registrations.new.team_name_help' %>
<%= f.submit "Sign up", class: "btn btn-primary" %>
<% end %> <%= render "devise/shared/links" %>
<% if resource and not resource.errors.empty? %> <% end %> <% if @org and not @org.errors.empty? %> <% end %>