<commit_before><h1>Create new appointment</h1>

<%= form_for @appointment, layout: :basic do |f| %>
  <div class="row form-group">
    <div class="col-md-12">
      <h2>Personal Details</h2>
    </div>
    <div class="col-md-6">
      <%= f.text_field :first_name, class: 't-first-name' %>
      <%= f.text_field :last_name, class: 't-last-name' %>
      <%= f.email_field :email, class: 't-email' %>
      <%= f.telephone_field :phone, class: 't-phone' %>
      <%= f.telephone_field :mobile, class: 't-mobile' %>
    </div>
    <div class="col-md-6">
      <%= f.text_field :year_of_birth, class: 't-year-of-birth' %>
      <%= f.text_field :memorable_word, class: 't-memorable-word' %>
      <%= f.text_area :notes, class: 't-notes', rows: 6 %>
      <%= f.check_box :opt_out_of_market_research, class: 't-opt-out-of-market-research' %>
    </div>
  </div>
  <div class="row form-group">
    <div class="col-md-12">
      <h2>Choose available slot</h2>

      <div class="calendar">
        <div data-module="AppointmentAvailabilityCalendar" data-events=".slots-data"></div>
        <input type="hidden" name="available-slots-json" class="slots-data" value="<%= @available_slots_json %>">
        <div class="hide">
          <%= f.text_field :start_at, data: { 'selected-start': true }, class: 't-start-at' %>
          <%= f.text_field :end_at, data: { 'selected-end': true }, class: 't-end-at' %>
        </div>
      </div>
    </div>
  </div>
  <div class="row form-group">
    <div class="col-md-12">
      <%= f.submit "Save", class: 't-save' %>
    </div>
  </div>
<% end %><commit_msg>Improvements to appointment new form<commit_after><h1>Create new appointment</h1>

<%= form_for @appointment, layout: :basic do |f| %>
  <div class="row form-group">
    <div class="col-md-12">
      <h2>Choose available slot</h2>

      <div class="calendar">
        <div data-module="AppointmentAvailabilityCalendar" data-events=".slots-data"></div>
        <input type="hidden" name="available-slots-json" class="slots-data" value="<%= @available_slots_json %>">
        <div class="hide">
          <%= f.text_field :start_at, data: { 'selected-start': true }, class: 't-start-at' %>
          <%= f.text_field :end_at, data: { 'selected-end': true }, class: 't-end-at' %>
        </div>
      </div>
    </div>
  </div>
  <div class="row form-group">
    <div class="col-md-12">
      <h2>Personal Details</h2>
    </div>
    <div class="col-md-6">
      <%= f.text_field :first_name, class: 't-first-name' %>
      <%= f.text_field :last_name, class: 't-last-name' %>
      <%= f.email_field :email, class: 't-email' %>
      <%= f.telephone_field :phone, class: 't-phone' %>
      <%= f.telephone_field :mobile, class: 't-mobile' %>
    </div>
    <div class="col-md-6">
      <%= f.text_field :year_of_birth, class: 't-year-of-birth' %>
      <%= f.text_field :memorable_word, class: 't-memorable-word', placeholder: 'Pension Wise will use this each time the customer is called' %>
      <%= f.text_area :notes, class: 't-notes', rows: 6, placeholder: 'Is the customer hard of hearing? Is English their first language? etc.' %>
      <%= f.check_box :opt_out_of_market_research, class: 't-opt-out-of-market-research' %>
    </div>
  </div>
  <div class="row form-group">
    <div class="col-md-12">
      <%= f.submit "Confirm appointment", class: 't-save' %>
    </div>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.20235640648011782, 'fraction_numerical': 0.008836524300441826, 'mean_word_length': 3.023696682464455, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '910986', 'n_tokens_mistral': 1324, 'n_tokens_neox': 1236, 'n_words': 256}