Sha256: 9810e1e1b3fd7eb3978c9e3206a14934782ed6c0f679f29b316999266c82be81

Contents?: true

Size: 985 Bytes

Versions: 2

Compression:

Stored size: 985 Bytes

Contents

<div class="row">
  <div class="col">
    <h1>Import Pre Registrations</h1>
    <%= form_with scope: :import, url: pre_registrations_import_index_url, local: true do |f| %>
      <fieldset>
        <legend>Import</legend>
        <div class="form-group">
          <%= f.label :csv_file, "CSV File" %>
          <%= f.file_field :csv_file, required: true, accept: "text/csv" %>
        </div>
        <p>The CSV file should be formatted like this example:</p>
        <pre>
first_name, last_name, email
John, Smith, jsmith@example.com
Jane, Doe, jdoe@example.com
,,unknown@example.com
Name,Only,
      </pre>
        <p>If you have a spreadsheet with these columns, "Save as..." and choose the CSV as the file type.</p>
        <p>It is assumed that your CSV has column headings. The first non-empty row will be ignored.</p>
      </fieldset>

      <%= f.submit "Import" %>
      <%= link_to "Cancel", pre_registrations_path, class: 'button-secondary' %>
    <% end %>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mr_common-2.1.0 app/views/mr_common/pre_registrations/import/new.html.erb
mr_common-2.0.0 app/views/mr_common/pre_registrations/import/new.html.erb