<commit_before><%= bootstrap_form_for(@employment) do |f| %>
  <% if @employment.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@employment.errors.count, "error") %> prohibited this employment from being saved:</h2>

      <ul>
      <% @employment.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.collection_select :person_id, @current_applicant.household_members_including_self, :id, :description, label: "Person employed" %>
  </div>
  <div class="field">
    <%= f.date_field :start_date %>
  </div>
  <div class="field">
    <%= f.date_field :end_date %>
  </div>
  <div class="field">
    <%= f.text_field :employer_name %>
  </div>
  <div class="field">
    <%= f.text_field :supervisor_name %>
  </div>
  <div class="field">
    <%= f.text_field :position %>
  </div>
  <div class="field">
    <%= f.text_field :phone %>
  </div>
  <h3>Employer Address</h3>
  <%= f.fields_for :address do |a| %>
    <%= render "addresses/fields", builder: a %>
  <% end %>
  <%= render "buttons_update_back", f: f %>
<% end %>
<commit_msg>Break employment form into columns<commit_after><%= bootstrap_form_for(@employment) do |f| %>
  <% if @employment.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@employment.errors.count, "error") %> prohibited this employment from being saved:</h2>

      <ul>
      <% @employment.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="row">
    <div class="col-md-6">
      <h3>About the employment</h3>
      <div class="field">
        <%= f.collection_select :person_id, @current_applicant.household_members_including_self, :id, :description, label: "Person employed" %>
      </div>
      <div class="field">
        <%= f.date_field :start_date %>
      </div>
      <div class="field">
        <%= f.date_field :end_date %>
      </div>
      <div class="field">
        <%= f.text_field :employer_name %>
      </div>
      <div class="field">
        <%= f.text_field :supervisor_name %>
      </div>
      <div class="field">
        <%= f.text_field :position %>
      </div>
      <div class="field">
        <%= f.text_field :phone %>
      </div>
    </div>

    <div class="col-md-6">
      <h3>Employer Address</h3>
      <%= f.fields_for :address do |a| %>
        <%= render "addresses/fields", builder: a %>
      <% end %>
    </div>
  </div>

  <%= render "buttons_update_back", f: f %>
<% end %>

{'fraction_non_alphanumeric': 0.19622205088666153, 'fraction_numerical': 0.004626060138781804, 'mean_word_length': 2.7663280116110305, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, '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': '1540971', 'n_tokens_mistral': 993, 'n_tokens_neox': 892, 'n_words': 186}