sul-dlss/argo

View on GitHub
app/views/bulk_actions/descriptive_metadata_import_jobs/_new.html.erb

Summary

Maintainability
Test Coverage
<%= form_with url: descriptive_metadata_import_job_path, class: 'new_bulk_action', data: { turbo_frame: '_top' } do |f| %>
  <%= render 'bulk_actions/errors' %>

  <span class='help-block'>
    Upload descriptive metadata for objects.
  </span>

  <div class='mb-3' id="import-csv">
    <%= f.label :csv_file, 'Upload a CSV or Excel file' %>
      <br>
      <small>Each row in the spreadsheet should start with the druid in the first field, followed by the descriptive metadata columns.</small>
    <%= f.file_field :csv_file, class: 'form-control', accept: '.csv, .xls, .ods, .xlsx' %>
  </div>
  <%= render 'bulk_actions/common_fields', f: %>
<% end %>