<commit_before><div id="page-header">
  <h1>Editing run</h1>
</div>

<%= form_for @run do |f| %>
  <%= render "form", :f => f %>
  <fieldset>
    <table>
      <tr>
        <th>Customer Name</th>
        <th>Round Trip?</th>
        <th>Guest Count</th>
        <th>Attendant Count</th>
        <th>Result</th>
        <th>Notes</th>
      </tr>
      <% @run.trips.each do |trip| %>
        <% f.fields_for :trips, trip do |trip_fields| %>
          <tr>
            <td>
              <%= trip.customer.name %>
            </td>
            <td>
              <%= trip_fields.check_box :round_trip %>
            </td>
            <td>
              <%= trip_fields.text_field :guest_count, :size => 1 %>
            </td>
            <td>
              <%= trip_fields.text_field :attendant_count, :size => 1 %>
            </td>
            <td>
              <%= trip_fields.select :trip_result, @trip_results, :include_blank => true %>
            </td>
            <td>
              <%= trip_fields.text_area :notes, :rows => 1 %>
            </td>
          </tr>
        <% end %>
      <% end %>
    </table>
  </fieldset>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

<%= render 'shared/date_picker_javascript' %><commit_msg>Runs page: Remove notes, add PU time, add edit trip link<commit_after><div id="page-header">
  <h1>Editing run</h1>
</div>

<%= form_for @run do |f| %>
  <%= render "form", :f => f %>
  <fieldset>
    <table>
      <tr>
        <th>Pickup Time</th>
        <th>Customer Name</th>
        <th>Round Trip?</th>
        <th>Guest Count</th>
        <th>Attendant Count</th>
        <th>Result</th>
        <th></th>
      </tr>
      <% @run.trips.each do |trip| %>
        <% f.fields_for :trips, trip do |trip_fields| %>
          <tr>
            <td>
              <%= trip.pickup_time.strftime("%l:%M %p") %>
            </td>
            <td>
              <%= trip.customer.name %>
            </td>
            <td>
              <%= trip_fields.check_box :round_trip %>
            </td>
            <td>
              <%= trip_fields.text_field :guest_count, :size => 1 %>
            </td>
            <td>
              <%= trip_fields.text_field :attendant_count, :size => 1 %>
            </td>
            <td>
              <%= trip_fields.select :trip_result, @trip_results, :include_blank => true %>
            </td>
            <td>
              <%= link_to "Edit Trip", trip, :class => "edit" %>
            </td>
          </tr>
        <% end %>
      <% end %>
    </table>
  </fieldset>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

<%= render 'shared/date_picker_javascript' %>

{'fraction_non_alphanumeric': 0.1826671647366455, 'fraction_numerical': 0.0033619723571161747, 'mean_word_length': 1.4591368227731865, 'pattern_counts': {'":': 0, '<': 114, '<?xml version=': 0, '>': 124, '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': '4795219', 'n_tokens_mistral': 986, 'n_tokens_neox': 898, 'n_words': 178}