<commit_before><% provide(:head_title, t("users.invitations.edit.head_title")) %>

<div class="center-block center-block-narrow">

<h2><%= t 'devise.invitations.edit.header' %></h2>

<%= form_for (resource or :user), as: resource_name, url: invitation_path(resource_name), html: { method: :put } do |f| %>

  <%= f.hidden_field :invitation_token %>

  <div class="form-group">
    <%= f.label :full_name %>
    <%= f.text_field :full_name,
                     value: (params[:user] ? params[:user][:full_name] : ''),
                     autofocus: true,
                     class: 'form-control' %>
  </div>

  <div class="form-group">
    <%= f.label :password %>
    <% if @minimum_password_length %>
    <em>(<%= @minimum_password_length %> characters minimum)</em>
    <% end %>
    <%= f.password_field :password, autocomplete: "off", class: "form-control" %>
  </div>

  <div class="form-group">
    <%= f.label :password_confirmation %>
    <%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
  </div>

  <div class="form-group">
    <%= label :team, :name, t('users.registrations.new.team_name_label') %>
    <% if @team %>
    <%= text_field :team, :name, class: 'form-control', value: @team.name %>
    <% else %>
    <%= text_field :team,
                   :name,
                   class: 'form-control',
                   value: (params[:team] ? params[:team][:name] : '') %>
    <% end %>
    <span><small><%= t 'users.registrations.new.team_name_help' %></small></span>
  </div>

  <%= recaptcha_input_tag %><commit_msg>adds hook to team name in the invitation template [fixes SCI-930]<commit_after><% provide(:head_title, t("users.invitations.edit.head_title")) %>

<div class="center-block center-block-narrow">

<h2><%= t 'devise.invitations.edit.header' %></h2>

<%= form_for (resource or :user), as: resource_name, url: invitation_path(resource_name), html: { method: :put } do |f| %>

  <%= f.hidden_field :invitation_token %>

  <div class="form-group">
    <%= f.label :full_name %>
    <%= f.text_field :full_name,
                     value: (params[:user] ? params[:user][:full_name] : ''),
                     autofocus: true,
                     class: 'form-control' %>
  </div>

  <div class="form-group">
    <%= f.label :password %>
    <% if @minimum_password_length %>
    <em>(<%= @minimum_password_length %> characters minimum)</em>
    <% end %>
    <%= f.password_field :password, autocomplete: "off", class: "form-control" %>
  </div>

  <div class="form-group">
    <%= f.label :password_confirmation %>
    <%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
  </div>

  <div class="form-group"
       data-hook="confirm-invitation-team-name">
    <%= label :team, :name, t('users.registrations.new.team_name_label') %>
    <% if @team %>
    <%= text_field :team, :name, class: 'form-control', value: @team.name %>
    <% else %>
    <%= text_field :team,
                   :name,
                   class: 'form-control',
                   value: (params[:team] ? params[:team][:name] : '') %>
    <% end %>
    <span><small><%= t 'users.registrations.new.team_name_help' %></small></span>
  </div>

  <%= recaptcha_input_tag %>
{'fraction_non_alphanumeric': 0.19521178637200737, 'fraction_numerical': 0.002148557397176182, 'mean_word_length': 3.0036855036855035, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3857427', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1074, 'n_words': 209}