<commit_before><%= form_for @handover, html: { multipart: true } do |f| %>
  <div class="form-group">
    <label for="handoverName">Handover Title</label>
    <%= f.label :title %>
    <%= f.text_field :title, class: "form-control", placeholder: "Name" %>
  </div>

  <div class="form-group">
    <%= f.label :description %>
    <%= f.text_area :description, class: "form-control", html: { rows: 5 } %>
  </div>

  <div class="form-group">
    <%= f.label :due_date %>
    <%= f.datetime_field :due_date, class: "form-control", placeholder: "Due date" %>
  </div>

  <div class="form-group">
    <%= f.label :subscribers %>
    <%= user_picker_field("handover[subscribers]") %>
  </div>

  <div class="form-group">
    <%= f.label :reference_documents do %>
      Reference documents for the handover
      <a href="#" data-toggle="modal" data-target="#info-reference-documents">
        <i class="fa fa-info-circle"></i>
      </a>
    <% end %>
    <%= f.file_field :reference_documents,
      multiple: true,
      name: "handover[reference_documents_attributes][][file_ptr]" %>
  </div>

  <div class="row" id="dropbox">
    <div class="col-lg-12">
      <div class="form-group">
        <%= f.label :boilerplate_documents do %>
          Boilerplate documents for the handover
          <a href="#" data-toggle="modal" data-target="#info-boilerplate-documents">
            <i class="fa fa-info-circle"></i>
          </a>
        <% end %>
        <%= f.file_field :boilerplate_documents,
          multiple: true,
          name: "handover[boilerplate_documents_attributes][][file_ptr]" %>
      </div>
    </div>
  </div>

  <%= f.submit 'Create Handover', class: 'btn btn-success' %>
<% end %>

<%= content_for :scripts do %>
  <%= javascript_tag do %>
    dragAndDropify('#new_handover');
  <% end %>
<% end %>

<%= modal(title: "Reference documents?", label: "reference-label", id: "info-reference-documents") do %>
  <p>
    Is there any documents you wish to attach to this handover that will help students? Maybe a template file, an interesting PDF or a picture that's worth a thousand words?
  </p>
  <p>
    Go a ahead and include it!
  </p>
<% end %>

<%= modal(title: "Boilerplate documents?", label: "boilerplate-label", id: "info-boilerplate-documents") do %><commit_msg>remove useless html on handover form<commit_after><%= form_for @handover, html: { multipart: true } do |f| %>
  <div class="form-group">
    <label for="handoverName">Handover Title</label>
    <%= f.label :title %>
    <%= f.text_field :title, class: "form-control", placeholder: "Name" %>
  </div>

  <div class="form-group">
    <%= f.label :description %>
    <%= f.text_area :description, class: "form-control", html: { rows: 5 } %>
  </div>

  <div class="form-group">
    <%= f.label :due_date %>
    <%= f.datetime_field :due_date, class: "form-control", placeholder: "Due date" %>
  </div>

  <div class="form-group">
    <%= f.label :subscribers %>
    <%= user_picker_field("handover[subscribers]") %>
  </div>

  <div class="form-group">
    <%= f.label :reference_documents do %>
      Reference documents for the handover
      <a href="#" data-toggle="modal" data-target="#info-reference-documents">
        <i class="fa fa-info-circle"></i>
      </a>
    <% end %>
    <%= f.file_field :reference_documents,
      multiple: true,
      name: "handover[reference_documents_attributes][][file_ptr]" %>
  </div>

  <div class="form-group">
    <%= f.label :boilerplate_documents do %>
      Boilerplate documents for the handover
      <a href="#" data-toggle="modal" data-target="#info-boilerplate-documents">
        <i class="fa fa-info-circle"></i>
      </a>
    <% end %>
    <%= f.file_field :boilerplate_documents,
      multiple: true,
      name: "handover[boilerplate_documents_attributes][][file_ptr]" %>
  </div>

  <%= f.submit 'Create Handover', class: 'btn btn-success' %>
<% end %>

<%= content_for :scripts do %>
  <%= javascript_tag do %>
    dragAndDropify('#new_handover');
  <% end %>
<% end %>

<%= modal(title: "Reference documents?", label: "reference-label", id: "info-reference-documents") do %>
  <p>
    Is there any documents you wish to attach to this handover that will help students? Maybe a template file, an interesting PDF or a picture that's worth a thousand words?
  </p>
  <p>
    Go a ahead and include it!
  </p>
<% end %>

<%= modal(title: "Boilerplate documents?", label: "boilerplate-label", id: "info-boilerplate-documents") do %>
{'fraction_non_alphanumeric': 0.17924107142857143, 'fraction_numerical': 0.0008928571428571428, 'mean_word_length': 3.3888344760039177, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '6520209', 'n_tokens_mistral': 1624, 'n_tokens_neox': 1461, 'n_words': 364}