<commit_before><h1>Orphaned Interventions<%=help_popup "An orphaned intervention is an 
intervention that has not yet been ended
that has also gone past the end date,  
has one or more participants that cannot access the student,  
or has no participants at all. </p>" %> </h1>




<p>The red fields show why that intervention is considered orphaned.</p>
<%form_tag do %>
<table>
  <thead>
    <tr>
      <th>End 
        <%=help_popup" To end one or more interventions, 
        check the boxes at the left, and then press 
        the \"End Selected\" Button.  (You may also need to 
        pick a reason.)" %>
      </th>
      <th>Student</th>
      <th>Intervention</th>
      <th>Start Date</th>
      <th>End Date 
        <%=help_popup "You can change the end date by clicking 
        on the icon next to the date and then choosing a new one." %>
      </th>
<th>Participants
  <%=help_popup "You can add participants by selecting them from 
  the dropdown in each intervention row.  
  The X next to a participant will remove him/her." %>
</th>
  </tr>

  </thead>
  <tbody>
    <%@interventions.each do |intervention| %>
      <tr>
        <td><%= check_box_tag 'id[]',intervention.id, false, :id => "ck_#{intervention.id}" %></td>
        <td><%=intervention.student %> </td>
        <td><%=intervention.title %></td>
        <td><%=intervention.start_date %> </td>
        <td <%= "style='color: red;'"  if intervention.end_date < Date.today%> >
          <%= unobtrusive_date_picker_tags intervention.end_date, 
            {:order => [:month, :day, :year], :start_year => (1.year.ago).year, :end_year => 2.years.since().year, 
              :prefix => "end_date#{intervention.id}"},
              {:onchange => remote_function(:url =>  update_end_date_orphaned_intervention_path(intervention), 
                                            :with => "'month=' + $('end_date#{intervention.id}-mm').value + '&day=' + $('end_date#{intervention.id}-dd').value +'&year=' + $('end_date#{intervention.id}').value",
                        :method => 'put')}
           %>
          *</td>
        <td><%=render :partial => "participant_list", :locals=>{:intervention => intervention} %></td>
      </tr>
    <% end %><commit_msg>[#364] link to student in orphaned intervention report, open a new tab<commit_after><h1>Orphaned Interventions<%=help_popup "An orphaned intervention is an 
intervention that has not yet been ended
that has also gone past the end date,  
has one or more participants that cannot access the student,  
or has no participants at all. </p>" %> </h1>




<p>The red fields show why that intervention is considered orphaned.</p>
<%form_tag do %>
<table>
  <thead>
    <tr>
      <th>End 
        <%=help_popup" To end one or more interventions, 
        check the boxes at the left, and then press 
        the \"End Selected\" Button.  (You may also need to 
        pick a reason.)" %>
      </th>
      <th>Student</th>
      <th>Intervention</th>
      <th>Start Date</th>
      <th>End Date 
        <%=help_popup "You can change the end date by clicking 
        on the icon next to the date and then choosing a new one." %>
      </th>
<th>Participants
  <%=help_popup "You can add participants by selecting them from 
  the dropdown in each intervention row.  
  The X next to a participant will remove him/her." %>
</th>
  </tr>

  </thead>
  <tbody>
    <%@interventions.each do |intervention| %>
      <tr>
        <td><%= check_box_tag 'id[]',intervention.id, false, :id => "ck_#{intervention.id}" %></td>
        <td><%=link_to intervention.student, intervention.student, :target => "_blank" %> </td>
        <td><%=intervention.title %></td>
        <td><%=intervention.start_date %> </td>
        <td <%= "style='color: red;'"  if intervention.end_date < Date.today%> >
          <%= unobtrusive_date_picker_tags intervention.end_date, 
            {:order => [:month, :day, :year], :start_year => (1.year.ago).year, :end_year => 2.years.since().year, 
              :prefix => "end_date#{intervention.id}"},
              {:onchange => remote_function(:url =>  update_end_date_orphaned_intervention_path(intervention), 
                                            :with => "'month=' + $('end_date#{intervention.id}-mm').value + '&day=' + $('end_date#{intervention.id}-dd').value +'&year=' + $('end_date#{intervention.id}').value",
                        :method => 'put')}
           %>
          *</td>
        <td><%=render :partial => "participant_list", :locals=>{:intervention => intervention} %></td>
      </tr>
    <% end %>
{'fraction_non_alphanumeric': 0.15633187772925763, 'fraction_numerical': 0.00240174672489083, 'mean_word_length': 2.6414944356120826, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 130, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3305920', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1363, 'n_words': 415}