<commit_before><%= form_for(@mlog_entry, html: {role: 'form'}) do |f| %>
<% if @mlog_entry.errors.any? %>
<div id="error_explanation">
  <h2><%= pluralize(@mlog_entry.errors.count, "error") %> prohibited this mlog_entry from being saved:</h2>

  <ul>
    <% @mlog_entry.errors.full_messages.each do |msg| %>
    <li><%= msg %></li>
    <% end %>
  </ul>
</div>
<% end %>

<div class="pane panel-info">
  <div class="panel-heading"><h4><%= t(:collection_data) %></h4></div>
  <div class="panel-body">
    <div class="field">
      <%= f.label :repository %><br>
      <%= f.select(:partner_code, MLOG_VOCAB["partner_codes"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :collection %><br>
      <%= f.select(:collection_code, MLOG_VOCAB["collection_codes"].invert, :include_blank => true ) %> 
    </div>

    <div class="field">
      <%= f.label :accession_num %><br>
      <%= f.text_field :accession_num %>
    </div>

  </div> 
</div>

<div class="panel panel-info">
  <!-- Default panel contents -->
  <div class="panel-heading"><h4><%= t(:physical_data) %></h4></div>
  <div class="panel-body">
   
    <div>
      <div class="field">
        <%= f.label "box_number" %><br>
        <%= f.number_field :box_number %>
      </div>
    </div>

    <div class="field">
      <%= f.label :media_id %><br>
      <%= f.number_field :media_id %>
    </div>
   
    <div class="field">
      <%= f.label :mediatype %><br>
      <%= f.select(:mediatype, MLOG_VOCAB["mediatypes"].invert, :include_blank => true ) %>
    </div>


    <div class="field">
      <table >
        <tr>
          <td><%= f.label :stock_size_num %></td><td><%= f.label :stock_unit %></td>
        </tr>
          <td><%= f.number_field :stock_size_num, :class => 'text_field', :step => 'any' %></td><td><%= f.select(:stock_unit, MLOG_VOCAB["stock_unit"].invert, :include_blank => false ) %></td>
        </tr>
      </table>
    </div>

    <div class="field">
      <%= f.label :label_text %><br>
      <%= f.text_area :label_text, size: "80x10" %>
    </div>

    <div class="field">
      <%= f.label 'Original Id'%><br>
      <%= f.text_field :original_id %>
    </div>
   
    <div class="field">
      <%= f.label 'Ref Id' %><br>
      <%= f.text_field :ref_id %>
    </div>

    <div class="field">
      <%= f.label :manufacturer %><br>
      <%= f.text_field :manufacturer %>
    </div>

    <div class="field">
      <%= f.label :manufacturer_serial %><br>
      <%= f.text_field :manufacturer_serial %>
    </div>

    
    <div class="field">
      <%= f.label :media_note %><br>
      <%= f.text_area :media_note, size: "40x5" %>
    </div>

    <div class="field">
      <%= f.label :disposition_note %><br>
      <%= f.text_area :disposition_note, size: "40x5" %>
    </div>
  </div>
</div>

<div class="panel panel-info">
  <!-- Default panel contents -->
  <div class="panel-heading"><h4><%= t(:section_disk_image_data) %></h4></div>
  <div class="panel-body">
    <div class="field">
      <%= f.label :image_filename %><br>
      <%= f.text_field :image_filename %>
    </div>
    <div class="field">
      <%= f.label :interface %><br>
      <%= f.select(:interface, MLOG_VOCAB["interfaces"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :imaging_software %><br>
      <%= f.select(:imaging_software, MLOG_VOCAB["imaging_software"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :hdd_interface %><br>
      <%= f.select(:hdd_interface, MLOG_VOCAB["hdd_interfaces"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :imaging_success %><br>
      <%= f.select(:imaging_success, MLOG_VOCAB["image_success"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :interpretation_success %><br>
      <%= f.select(:interpretation_success, MLOG_VOCAB["interpret_success"].invert, :include_blank => true ) %>

    </div>
    <div class="field">
      <%= f.label :imaged_by %><br>
      <%= f.text_field :imaged_by %>
    </div>
    <div class="field">
      <%= f.label :imaging_note %><br>
      <%= f.text_area :imaging_note %>
    </div>
    <div class="field">
      <%= f.label :image_format %><br>
      <%= f.select(:image_format, MLOG_VOCAB["image_formats"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :number_of_image_segments %><br>
      <%= f.number_field :number_of_image_segments %>
    </div>
    <div class="field">
      <%= f.label :encoding_scheme %><br>
      <%= f.select(:encoding_scheme, MLOG_VOCAB["encoding_schemes"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :partition_table_format %><br>
      <%= f.text_field :partition_table_format %>
    </div>
    <div class="field">
      <%= f.label :number_of_partitions %><br>
      <%= f.number_field :number_of_partitions %>
    </div>
    <div class="field">
      <%= f.label :filesystem %><br>
      <%= f.select(:filesystem, MLOG_VOCAB["filesystems"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :has_dfxml %><br>
      <%= f.check_box :has_dfxml %>
    </div>
    <div class="field">
      <%= f.label :has_ftk_csv %><br>
      <%= f.check_box :has_ftk_csv %>
    </div>
    <div class="field">
      <%= f.label :has_mactime_csv %><br >
      <%= f.check_box :has_mactime_csv %>
    </div>
    <div class="field">
      <%= f.label :image_size_bytes %><br>
      <%= f.number_field :image_size_bytes %>
    </div>
    <div class="field">
      <%= f.label :md5_checksum %><br>
      <%= f.text_field :md5_checksum %>
    </div>
    <div class="field">
      <%= f.label :sha1_checksum %><br>
      <%= f.text_field :sha1_checksum %>
    </div>
    <div class="field">
      <%= f.label :sip_id %><br>
      <%= f.number_field :sip_id %>
    </div>
  </div>
</div>

<div class="panel panel-info">
  <!-- Default panel contents -->
  <div class="panel-heading"><h4><%= t(:section_workflow_job_tracking) %></h4></div>
  <div class="panel-body">
    <div class="field">
      <%= f.label "Date Imaged or Transferred"%><br>
      <%= f.datetime_select :date_imaged, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_ftk_loaded %><br>
      <%= f.datetime_select :date_ftk_loaded, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_metadata_extracted %><br>
      <%= f.datetime_select :date_metadata_extracted, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_photographed %><br>
      <%= f.datetime_select :date_photographed, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_qc %><br>
      <%= f.datetime_select :date_qc, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_transferred %><br>
      <%= f.datetime_select :date_transferred, :include_blank => true %>
    </div>
  </div>
</div>

<div class="actions">
  <input type="submit" value="Submit" class="btn btn-primary"/>
</div>
<% end %>
<commit_msg>updating entry views<commit_after><%= form_for(@mlog_entry, html: {role: 'form'}) do |f| %>
<% if @mlog_entry.errors.any? %>
<div id="error_explanation">
  <h2><%= pluralize(@mlog_entry.errors.count, "error") %> prohibited this mlog_entry from being saved:</h2>

  <ul>
    <% @mlog_entry.errors.full_messages.each do |msg| %>
    <li><%= msg %></li>
    <% end %>
  </ul>
</div>
<% end %>

<div class="pane panel-info">
  <div class="panel-heading"><h4><%= t(:collection_data) %></h4></div>
  <div class="panel-body">
    <div class="field">
      <%= f.label :repository %><br>
      <%= f.select(:partner_code, MLOG_VOCAB["partner_codes"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :collection %><br>
      <%= f.select(:collection_code, MLOG_VOCAB["collection_codes"].invert, :include_blank => true ) %> 
    </div>

    <div class="field">
      <%= f.label :accession_num %><br>
      <%= f.text_field :accession_num %>
    </div>

  </div> 
</div>

<div class="panel panel-info">
  <!-- Default panel contents -->
  <div class="panel-heading"><h4><%= t(:physical_data) %></h4></div>
  <div class="panel-body">
   
    <div>
      <div class="field">
        <%= f.label "box_number" %><br>
        <%= f.number_field :box_number %>
      </div>
    </div>

    <div class="field">
      <%= f.label :media_id %><br>
      <%= f.number_field :media_id %>
    </div>
   
    <div class="field">
      <%= f.label :mediatype %><br>
      <%= f.select(:mediatype, MLOG_VOCAB["mediatypes"].invert, :include_blank => true ) %>
    </div>


    <div class="field">
      <table >
        <tr>
          <td><%= f.label :stock_size_num %></td><td><%= f.label :stock_unit %></td>
        </tr>
          <td><%= f.number_field :stock_size_num, :class => 'text_field', :step => 'any' %></td><td><%= f.select(:stock_unit, MLOG_VOCAB["stock_unit"].invert, :include_blank => false ) %></td>
        </tr>
      </table>
    </div>

    <div class="field">
      <%= f.label :label_text %><br>
      <%= f.text_area :label_text, size: "80x10" %>
    </div>

    <div class="field">
      <%= f.label 'Original Id'%><br>
      <%= f.text_field :original_id %>
    </div>
   
    <div class="field">
      <%= f.label 'Ref Id' %><br>
      <%= f.text_field :ref_id %>
    </div>

    <div class="field">
      <%= f.label :manufacturer %><br>
      <%= f.text_field :manufacturer %>
    </div>

    <div class="field">
      <%= f.label :manufacturer_serial %><br>
      <%= f.text_field :manufacturer_serial %>
    </div>

    
    <div class="field">
      <%= f.label :media_note %><br>
      <%= f.text_area :media_note, size: "40x5" %>
    </div>

    <div class="field">
      <%= f.label :disposition_note %><br>
      <%= f.text_area :disposition_note, size: "40x5" %>
    </div>
  </div>
</div>

<div class="panel panel-info">
  <!-- Default panel contents -->
  <div class="panel-heading"><h4><%= t(:image_file_data) %></h4></div>
  <div class="panel-body">
    <div class="field">
      <%= f.label :image_filename %><br>
      <%= f.text_field :image_filename %>
    </div>
    <div class="field">
      <%= f.label :interface %><br>
      <%= f.select(:interface, MLOG_VOCAB["interfaces"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :imaging_software %><br>
      <%= f.select(:imaging_software, MLOG_VOCAB["imaging_software"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :hdd_interface %><br>
      <%= f.select(:hdd_interface, MLOG_VOCAB["hdd_interfaces"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :imaging_success %><br>
      <%= f.select(:imaging_success, MLOG_VOCAB["image_success"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :interpretation_success %><br>
      <%= f.select(:interpretation_success, MLOG_VOCAB["interpret_success"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :imaged_by %><br>
      <%= f.text_field :imaged_by %>
    </div>
    <div class="field">
      <%= f.label :imaging_note %><br>
      <%= f.text_area :imaging_note %>
    </div>
    <div class="field">
      <%= f.label :image_format %><br>
      <%= f.select(:image_format, MLOG_VOCAB["image_formats"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :number_of_image_segments %><br>
      <%= f.number_field :number_of_image_segments %>
    </div>
    <div class="field">
      <%= f.label :encoding_scheme %><br>
      <%= f.select(:encoding_scheme, MLOG_VOCAB["encoding_schemes"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :partition_table_format %><br>
      <%= f.text_field :partition_table_format %>
    </div>
    <div class="field">
      <%= f.label :number_of_partitions %><br>
      <%= f.number_field :number_of_partitions %>
    </div>
    <div class="field">
      <%= f.label :filesystem %><br>
      <%= f.select(:filesystem, MLOG_VOCAB["filesystems"].invert, :include_blank => true ) %>
    </div>
    <div class="field">
      <%= f.label :image_size_bytes %><br>
      <%= f.number_field :image_size_bytes %>
    </div>
    <div class="field">
      <%= f.label :md5_checksum %><br>
      <%= f.text_field :md5_checksum %>
    </div>
    <div class="field">
      <%= f.label :sha1_checksum %><br>
      <%= f.text_field :sha1_checksum %>
    </div>
    <!--
    <div class="field">
      <%= f.label :has_dfxml %><br>
      <%= f.check_box :has_dfxml %>
    </div>
    <div class="field">
      <%= f.label :has_ftk_csv %><br>
      <%= f.check_box :has_ftk_csv %>
    </div>
    <div class="field">
      <%= f.label :has_mactime_csv %><br >
      <%= f.check_box :has_mactime_csv %>
    </div>
    <div class="field">
      <%= f.label :sip_id %><br>
      <%= f.number_field :sip_id %>
    </div>
  -->
  </div>
</div>

<div class="panel panel-info">
  <!-- Default panel contents -->
  <div class="panel-heading"><h4><%= t(:section_workflow_job_tracking) %></h4></div>
  <div class="panel-body">
    <div class="field">
      <%= f.label "Date Imaged or Transferred"%><br>
      <%= f.datetime_select :date_imaged, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_ftk_loaded %><br>
      <%= f.datetime_select :date_ftk_loaded, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_metadata_extracted %><br>
      <%= f.datetime_select :date_metadata_extracted, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_photographed %><br>
      <%= f.datetime_select :date_photographed, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_qc %><br>
      <%= f.datetime_select :date_qc, :include_blank => true %>
    </div>
    <div class="field">
      <%= f.label :date_transferred %><br>
      <%= f.datetime_select :date_transferred, :include_blank => true %>
    </div>
  </div>
</div>

<div class="actions">
  <input type="submit" value="Submit" class="btn btn-primary"/>
</div>
<% end %>

{'fraction_non_alphanumeric': 0.21246261909729466, 'fraction_numerical': 0.003338201543918214, 'mean_word_length': 2.9268159475696343, 'pattern_counts': {'":': 0, '<': 562, '<?xml version=': 0, '>': 602, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2348766', 'n_tokens_mistral': 5659, 'n_tokens_neox': 5301, 'n_words': 974}