<commit_before><div id="page-header">
  <h1>Editing Run: <%= @run.date.to_s(:long) %></h1>
</div>

<%= form_for @run do |f| %>
  <%= render "form", :f => f %>
  
  <fieldset>
    <table class="ride_trips">
      <thead>
        <tr>
          <th>Pickup Time</th>
          <th>Customer Name</th>
          <th>In District?</th>
          <th>Purpose</th>
          <th>Round Trip?</th>
          <th>Guest Count</th>
          <th>Attendant Count</th>
          <th>Result</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <% @run.trips.each do |trip| %>
          <%= render :partial => 'trip', :locals => {:trip => trip} %>
        <% end %>
      </tbody>
    </table>
    <hr />
    <% if can?(:create, @run.trips.new) && current_user.current_provider.allow_trip_entry_from_runs_page? %>
      <%= link_to 'New Trip', new_trip_path(:start => @run.date.to_time.to_i, :run_id => @run.id), :class=>'action-bttn new', :id => 'trip_entry_from_run_page' %>
      <span id="search-spinner"></span>
    <% end %>
  </fieldset>

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

<div id="new_trip_from_run_page"></div>

<%= render "shared/date_picker_javascript" %>
<%= javascript_tag do %><commit_msg>Fixing Add Trip button on run edit page<commit_after><div id="page-header">
  <h1>Editing Run: <%= @run.date.to_s(:long) %></h1>
</div>

<%= form_for @run do |f| %>
  <%= render "form", :f => f %>
  
  <fieldset>
    <table class="ride_trips">
      <thead>
        <tr>
          <th>Pickup Time</th>
          <th>Customer Name</th>
          <th>In District?</th>
          <th>Purpose</th>
          <th>Round Trip?</th>
          <th>Guest Count</th>
          <th>Attendant Count</th>
          <th>Result</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <% @run.trips.each do |trip| %>
          <%= render :partial => 'trip', :locals => {:trip => trip} %>
        <% end %>
      </tbody>
    </table>
    <hr />
    <% if can?(:create, Trip) && current_user.current_provider.allow_trip_entry_from_runs_page? %>
      <%= link_to 'New Trip', new_trip_path(:start => @run.date.to_time.to_i, :run_id => @run.id), :class=>'action-bttn new', :id => 'trip_entry_from_run_page' %>
      <span id="search-spinner"></span>
    <% end %>
  </fieldset>

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

<div id="new_trip_from_run_page"></div>

<%= render "shared/date_picker_javascript" %>
<%= javascript_tag do %>
{'fraction_non_alphanumeric': 0.20987158908507222, 'fraction_numerical': 0.0016051364365971107, 'mean_word_length': 2.415068493150685, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 123, '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': '7121666', 'n_tokens_mistral': 1014, 'n_tokens_neox': 924, 'n_words': 169}