csv.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends 'auth_layout.html' %}
  2. {% block content %}
  3. {% if context.message %}
  4. <div class="row">
  5. <div class="col text-center text-primary">
  6. <i class="ri-error-warning-fill"></i> {{ context.message }}
  7. </div>
  8. </div>
  9. {% endif %}
  10. <div class="row">
  11. <div class="col">
  12. <a href="{{ url_for('admin_ils_users') }}" class="btn btn-dark float-end"><i class="ri-arrow-left-s-line"></i> Back</a>
  13. <a href="{{ url_for('admin_ils_users_csv_download') }}" class="btn btn-secondary float-end me-2"><i class="ri-file-download-fill"></i> Download CSV Template</a>
  14. <h3><i class="ri-file-excel-line"></i> CSV Import ILS Users</h3>
  15. <p class="lead">ILS users can be loaded using a comma delimited CSV file.</p>
  16. <p class="alert alert-warning">
  17. <i class="ri-error-warning-fill"></i> If users already exist in the database, they will be updated with the information provided in the CSV file.
  18. </p>
  19. </div>
  20. </div>
  21. <div class="row">
  22. <div class="col">
  23. <form action="{{ url_for('admin_ils_users_csv_import') }}" method="post" enctype="multipart/form-data">
  24. <div class="mb-3">
  25. <label for="csv" class="form-label">CSV File</label>
  26. <input type="file" class="form-control" id="csv" name="csv" required>
  27. </div>
  28. <div class="mb-3">
  29. <input type="submit" class="btn btn-primary" value="Import">
  30. </div>
  31. </form>
  32. </div>
  33. </div>
  34. {% endblock %}