<commit_before><%= form_for([:admin, current_competition, @competitor]) do |f| %>
  <%= render 'form_errors', object: @competitor, label: 'competitor' %>

  <%= form_section 'Personal data' do %>
    <table class="form-table">
      <tr>
        <td><%= f.label :wca, 'WCA ID:' %></td>
        <td><%= f.text_field :wca, autocomplete: "off", data: { enable: Cubecomp::Application.config.wca_api_url.present?, url: wca_autocomplete_path } %></td>
      </tr>
      <tr>
        <td><%= f.label :first_name, 'First name:' %></td>
        <td><%= f.text_field :first_name %></td>
      </tr>
      <tr>
        <td><%= f.label :last_name, 'Last name:' %></td>
        <td><%= f.text_field :last_name %></td>
      </tr>
      <tr>
        <td><%= f.label :email, 'E-mail:' %></td>
        <td><%= f.text_field :email %></td>
      </tr>
      <tr>
        <td><%= f.label :birthday, 'Birthday:' %></td>
        <td>
          <%=
            f.date_select :birthday, {
              start_year: Competitor.valid_birthday_range.first.year,
              end_year: Competitor.valid_birthday_range.last.year,
              order: [:month, :day, :year ],
              include_blank: true
            },
            {
              class: 'date-select'
            }
          %>
        </td>
      </tr>
      <tr>
        <td><%= f.label :country, 'Country:' %></td>
        <td>
          <%= f.select :country_id, [["", nil]] + Country.all.map{ |c| [ c.name, c.id ] } %>
          (
            <%= f.check_box :local %>
            <%= f.label :local, current_competition.city_name, class: 'checkbox' %>
          )
        </td>
      </tr>
      <tr>
        <td><%= f.label :male, 'Gender:' %></td>
        <td>
          <%= f.radio_button :male, true %>
          <%= f.label :male, 'male', value: true, class: 'checkbox' %>
          <%= f.radio_button :male, false %>
          <%= f.label :male, 'female', value: false, class: 'checkbox' %>
        </td>
      </tr>
      <tr>
        <td><%= f.label :nametag, 'Nametag:' %></td>
        <td><%= f.text_field :nametag %></td>
      </tr>
    </table>
  <% end %>

  <%= form_section 'Options' do %>
    <p>
      <%= f.label :state, 'State:' %>
      <%= f.select :state, Competitor::STATES, {}, { class: 'small', style: 'display: inline' } %>
    </p>

    <p>
      <%= f.check_box :staff %>
      <%= f.label :staff, 'Staff member', class: 'checkbox' %>
    </p>
    <p>
      <%= f.check_box :confirmation_email_sent %>
      <%= f.label :confirmation_email_sent, 'Confirmation email sent', class: 'checkbox' %>
    </p>
  <% end %>

  <%= form_section 'Financial settings' do %>
    <p>
      <%= f.check_box :free_entrance %>
      <%= f.label :free_entrance, 'Free entrance', class: 'checkbox' %>
      (Reason: <%= f.text_field :free_entrance_reason, class: 'inline' %>)<commit_msg>Show "Registered on" for competitor<commit_after><%= form_for([:admin, current_competition, @competitor]) do |f| %>
  <%= render 'form_errors', object: @competitor, label: 'competitor' %>

  <%= form_section 'Personal data' do %>
    <table class="form-table">
      <tr>
        <td><%= f.label :wca, 'WCA ID:' %></td>
        <td><%= f.text_field :wca, autocomplete: "off", data: { enable: Cubecomp::Application.config.wca_api_url.present?, url: wca_autocomplete_path } %></td>
      </tr>
      <tr>
        <td><%= f.label :first_name, 'First name:' %></td>
        <td><%= f.text_field :first_name %></td>
      </tr>
      <tr>
        <td><%= f.label :last_name, 'Last name:' %></td>
        <td><%= f.text_field :last_name %></td>
      </tr>
      <tr>
        <td><%= f.label :email, 'E-mail:' %></td>
        <td><%= f.text_field :email %></td>
      </tr>
      <tr>
        <td><%= f.label :birthday, 'Birthday:' %></td>
        <td>
          <%=
            f.date_select :birthday, {
              start_year: Competitor.valid_birthday_range.first.year,
              end_year: Competitor.valid_birthday_range.last.year,
              order: [:month, :day, :year ],
              include_blank: true
            },
            {
              class: 'date-select'
            }
          %>
        </td>
      </tr>
      <tr>
        <td><%= f.label :country, 'Country:' %></td>
        <td>
          <%= f.select :country_id, [["", nil]] + Country.all.map{ |c| [ c.name, c.id ] } %>
          (
            <%= f.check_box :local %>
            <%= f.label :local, current_competition.city_name, class: 'checkbox' %>
          )
        </td>
      </tr>
      <tr>
        <td><%= f.label :male, 'Gender:' %></td>
        <td>
          <%= f.radio_button :male, true %>
          <%= f.label :male, 'male', value: true, class: 'checkbox' %>
          <%= f.radio_button :male, false %>
          <%= f.label :male, 'female', value: false, class: 'checkbox' %>
        </td>
      </tr>
      <tr>
        <td><%= f.label :nametag, 'Nametag:' %></td>
        <td><%= f.text_field :nametag %></td>
      </tr>
    </table>
  <% end %>

  <%= form_section 'Other' do %>
    <%= f.label :created_at, 'Registered on:' %>
    <%= @competitor.created_at %>
  <% end %>

  <%= form_section 'Options' do %>
    <p>
      <%= f.label :state, 'State:' %>
      <%= f.select :state, Competitor::STATES, {}, { class: 'small', style: 'display: inline' } %>
    </p>

    <p>
      <%= f.check_box :staff %>
      <%= f.label :staff, 'Staff member', class: 'checkbox' %>
    </p>
    <p>
      <%= f.check_box :confirmation_email_sent %>
      <%= f.label :confirmation_email_sent, 'Confirmation email sent', class: 'checkbox' %>
    </p>
  <% end %>

  <%= form_section 'Financial settings' do %>
    <p>
      <%= f.check_box :free_entrance %>
      <%= f.label :free_entrance, 'Free entrance', class: 'checkbox' %>
      (Reason: <%= f.text_field :free_entrance_reason, class: 'inline' %>)
{'fraction_non_alphanumeric': 0.20848298272618437, 'fraction_numerical': 0.0, 'mean_word_length': 2.0505998956703184, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 195, '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': '7647953', 'n_tokens_mistral': 2233, 'n_tokens_neox': 2072, 'n_words': 445}