選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

35 行
1.5KB

  1. <% Flash().ShowErrorsIfPresent : Flash().ShowSuccessIfPresent %>
  2. <div class="row">
  3. <div class="col-lg-8">
  4. <div class="card shadow-sm mb-3">
  5. <div class="card-body">
  6. <h1 class="h3 mb-3">Import businesses</h1>
  7. <p class="text-muted">
  8. Upload an Excel (<code>.xlsx</code>, <code>.xls</code>) or <code>.csv</code> file. The first row must be the column headings.
  9. You'll match the columns to fields on the next step before anything is saved.
  10. </p>
  11. <form method="post" action="/import/upload" enctype="multipart/form-data">
  12. <input type="hidden" name="csrf" value="<%= H(csrf) %>" />
  13. <div class="mb-3">
  14. <label for="file" class="form-label">File</label>
  15. <input class="form-control" type="file" id="file" name="file" accept=".csv,.xlsx,.xls" required />
  16. </div>
  17. <button type="submit" class="btn btn-primary"><i class="bi bi-upload"></i> Upload and map columns</button>
  18. </form>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="col-lg-4">
  23. <div class="card border-0 bg-light">
  24. <div class="card-body small">
  25. <h2 class="h6">How duplicates are handled</h2>
  26. <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>
  27. <p class="mb-0">Rows with no business name are skipped. New industries found in the file are created automatically.</p>
  28. </div>
  29. </div>
  30. </div>
  31. </div>

Powered by TurnKey Linux.