<commit_before><%= f.hidden_field :time_type_id %>

<div class="row">
  <div class="small-12 columns">
    <%= f.select :time_type_id, options_from_collection_for_select(@time_types, :id, :name, f.object.time_type_id), label: t('.time_type') %>
  </div>
</div>

<div class="row from_to_date">
  <div class="small-6 columns">
    <%= datefield(f, :start_date, t('.start_date'), f.object.start_date, :from_date) %>
  </div>
  <div class="small-6 columns">
    <%= datefield(f, :end_date, t('.end_date'), f.object.end_date, :to_date) %>
  </div>
</div>


<div class="row">
  <div class="small-12 columns">
    <%= f.select :daypart, {t('whole_day') => :whole_day, t('first_half_day') => :first_half_day, t('second_half_day') => :second_half_day}, label: t('.daypart') %>
  </div>
</div>

<%= render 'absences/recurring_schedule_sub_form', main_form: f %>

<div class="row">
  <div class="small-12 columns">
    <%= f.submit class: 'button' %>
    <% if f.object.persisted? %>
      <%= link_to t('.delete'), time_sheet_absence_path(f.object.time_sheet_id, f.object), method: :delete, class: 'absence-delete-link' %>
    <% end %>
  </div>
</div>
<commit_msg>make the delete button red to indicate there is DANGER AHEAD http://tinyurl.com/okox6ca<commit_after><%= f.hidden_field :time_type_id %>

<div class="row">
  <div class="small-12 columns">
    <%= f.select :time_type_id, options_from_collection_for_select(@time_types, :id, :name, f.object.time_type_id), label: t('.time_type') %>
  </div>
</div>

<div class="row from_to_date">
  <div class="small-6 columns">
    <%= datefield(f, :start_date, t('.start_date'), f.object.start_date, :from_date) %>
  </div>
  <div class="small-6 columns">
    <%= datefield(f, :end_date, t('.end_date'), f.object.end_date, :to_date) %>
  </div>
</div>


<div class="row">
  <div class="small-12 columns">
    <%= f.select :daypart, {t('whole_day') => :whole_day, t('first_half_day') => :first_half_day, t('second_half_day') => :second_half_day}, label: t('.daypart') %>
  </div>
</div>

<%= render 'absences/recurring_schedule_sub_form', main_form: f %>

<div class="row">
  <div class="small-12 columns">
    <%= f.submit class: 'button' %>
    <% if f.object.persisted? %>
      <%= link_to t('.delete'), time_sheet_absence_path(f.object.time_sheet_id, f.object), method: :delete, class: 'button alert absence-delete-link' %>
    <% end %>
  </div>
</div>

{'fraction_non_alphanumeric': 0.20901126408010012, 'fraction_numerical': 0.0070921985815602835, 'mean_word_length': 4.70952380952381, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 65, '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': '501415', 'n_tokens_mistral': 968, 'n_tokens_neox': 915, 'n_words': 177}