<commit_before><h3>Basic</h3>

<div class='row form-group'>
  <%= f.label :first_name, 'First Name', class: 'col-md-2 control-label required' %>
  <div class='col-md-6'>
    <%= f.text_field :first_name, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :middle_name, 'Middle Name', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :middle_name, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :last_name, 'Last Name', class: 'col-md-2 control-label required' %>
  <div class='col-md-6'>
    <%= f.text_field :last_name, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :a_number, 'A Number', class: 'col-md-2 control-label required' %>
  <div class='col-md-6'>
    <%= f.text_field :a_number, class: 'form-control' %>
    <div class='co-md-12'>
      <%= f.check_box :no_a_number %>
      <%= f.label :no_a_number, 'Friend does not have an A Number' %>
    </div>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :phone, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :phone, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :email, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :email, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :eoir_case_status, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :eoir_case_status, options_for_select(Friend::EOIR_CASE_STATUSES.map { |status_array| status_array[0] }, @friend.eoir_case_status), {include_blank: true}, {class: 'form-control'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :gender, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :gender, options_for_select(Friend.genders.map { |key, value| [key.humanize, key] }, @friend.gender), {include_blank: true}, {class: 'form-control'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :ethnicity, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :ethnicity, options_for_select(Friend.ethnicities.map { |key, value| [key.humanize, key] }, @friend.ethnicity), {include_blank: true}, {class: 'form-control'} %>
  </div>
</div>

<div class='row form-group other_ethnicity_wrapper', style="<%= 'display:none;' unless friend.other? %>">
  <%= f.label :other_ethnicity,'Other Ethnicity', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :other_ethnicity, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= fields_for(@friend.languages.build) do |fl| %>
    <%= fl.label :languages,'Languages', class: 'col-md-2 control-label' %>
    <div class='col-md-6'>
      <%= collection_select(:friend, :language_ids, Language.all, :id, :name, {}, {multiple: true, prompt: true, class: 'chzn-select form-control'}) %>
    </div>
  <% end %>
</div>

<div class='row form-group'>
  <%= f.label :country_id,'Country of Origin', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= collection_select(:friend, :country_id, Country.all, :id, :name, {prompt: true}, {class: 'chzn-select form-control'}) %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :zip_code,'Zip Code', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :zip_code, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :city,'City', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :city, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :state, 'State', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :state, us_states_options(), {}, { class: 'form-control chzn-select' } %>

  </div>
</div>

<div class='row form-group'>
  <%= f.label :date_of_birth, 'Date of Birth', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.date_select :date_of_birth, { start_year: Date.current.year, end_year: 1930, prompt: true, order: [:month, :day, :year] }, {class: 'form-control inline-date-select'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :status, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :status, options_for_select(Friend::STATUSES, @friend.status), {include_blank: true}, {class: 'form-control'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :date_of_entry, 'Date of Entry', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.date_select :date_of_entry, { start_year: Date.current.year, end_year: 1930, prompt: true, order: [:month, :day, :year] }, {class: 'form-control inline-date-select'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :border_queue_number, 'Border Queue Number', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :border_queue_number, class: 'form-control' %>
  </div>
</div><commit_msg>moved location of eoir case status and added label<commit_after><h3>Basic</h3>

<div class='row form-group'>
  <%= f.label :first_name, '<NAME>', class: 'col-md-2 control-label required' %>
  <div class='col-md-6'>
    <%= f.text_field :first_name, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :middle_name, 'Middle Name', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :middle_name, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :last_name, 'Last Name', class: 'col-md-2 control-label required' %>
  <div class='col-md-6'>
    <%= f.text_field :last_name, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :a_number, 'A Number', class: 'col-md-2 control-label required' %>
  <div class='col-md-6'>
    <%= f.text_field :a_number, class: 'form-control' %>
    <div class='co-md-12'>
      <%= f.check_box :no_a_number %>
      <%= f.label :no_a_number, 'Friend does not have an A Number' %>
    </div>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :phone, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :phone, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :email, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :email, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :gender, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :gender, options_for_select(Friend.genders.map { |key, value| [key.humanize, key] }, @friend.gender), {include_blank: true}, {class: 'form-control'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :ethnicity, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :ethnicity, options_for_select(Friend.ethnicities.map { |key, value| [key.humanize, key] }, @friend.ethnicity), {include_blank: true}, {class: 'form-control'} %>
  </div>
</div>

<div class='row form-group other_ethnicity_wrapper', style="<%= 'display:none;' unless friend.other? %>">
  <%= f.label :other_ethnicity,'Other Ethnicity', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :other_ethnicity, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= fields_for(@friend.languages.build) do |fl| %>
    <%= fl.label :languages,'Languages', class: 'col-md-2 control-label' %>
    <div class='col-md-6'>
      <%= collection_select(:friend, :language_ids, Language.all, :id, :name, {}, {multiple: true, prompt: true, class: 'chzn-select form-control'}) %>
    </div>
  <% end %>
</div>

<div class='row form-group'>
  <%= f.label :country_id,'Country of Origin', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= collection_select(:friend, :country_id, Country.all, :id, :name, {prompt: true}, {class: 'chzn-select form-control'}) %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :zip_code,'Zip Code', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :zip_code, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :city,'City', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :city, class: 'form-control' %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :state, 'State', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :state, us_states_options(), {}, { class: 'form-control chzn-select' } %>

  </div>
</div>

<div class='row form-group'>
  <%= f.label :date_of_birth, 'Date of Birth', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.date_select :date_of_birth, { start_year: Date.current.year, end_year: 1930, prompt: true, order: [:month, :day, :year] }, {class: 'form-control inline-date-select'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :status, class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :status, options_for_select(Friend::STATUSES, @friend.status), {include_blank: true}, {class: 'form-control'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :eoir_case_status, "EOIR Case Status", class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.select :eoir_case_status, options_for_select(Friend::EOIR_CASE_STATUSES.map { |status_array| status_array[0] }, @friend.eoir_case_status), {include_blank: true}, {class: 'form-control'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :date_of_entry, 'Date of Entry', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.date_select :date_of_entry, { start_year: Date.current.year, end_year: 1930, prompt: true, order: [:month, :day, :year] }, {class: 'form-control inline-date-select'} %>
  </div>
</div>

<div class='row form-group'>
  <%= f.label :border_queue_number, 'Border Queue Number', class: 'col-md-2 control-label' %>
  <div class='col-md-6'>
    <%= f.text_field :border_queue_number, class: 'form-control' %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.2228009828009828, 'fraction_numerical': 0.010024570024570025, 'mean_word_length': 4.075311720698254, 'pattern_counts': {'":': 0, '<': 250, '<?xml version=': 0, '>': 250, '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': '670688', 'n_tokens_mistral': 4143, 'n_tokens_neox': 3940, 'n_words': 843}