|
- <% Flash().ShowErrorsIfPresent : Flash().ShowSuccessIfPresent %>
-
- <div class="row">
- <div class="col-lg-8">
- <div class="card shadow-sm mb-3">
- <div class="card-body">
- <h1 class="h3 mb-3">Import businesses</h1>
- <p class="text-muted">
- Upload an Excel (<code>.xlsx</code>, <code>.xls</code>) or <code>.csv</code> file. The first row must be the column headings.
- You'll match the columns to fields on the next step before anything is saved.
- </p>
-
- <form method="post" action="/import/upload" enctype="multipart/form-data">
- <input type="hidden" name="csrf" value="<%= H(csrf) %>" />
- <div class="mb-3">
- <label for="file" class="form-label">File</label>
- <input class="form-control" type="file" id="file" name="file" accept=".csv,.xlsx,.xls" required />
- </div>
- <button type="submit" class="btn btn-primary"><i class="bi bi-upload"></i> Upload and map columns</button>
- </form>
- </div>
- </div>
- </div>
-
- <div class="col-lg-4">
- <div class="card border-0 bg-light">
- <div class="card-body small">
- <h2 class="h6">How duplicates are handled</h2>
- <p class="mb-2">A row is skipped when its <strong>phone number</strong> (digits only) or its <strong>email address</strong> already exists, either in the database or earlier in the same file.</p>
- <p class="mb-0">Rows with no business name are skipped. New industries found in the file are created automatically.</p>
- </div>
- </div>
- </div>
- </div>
|