You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.0 KiB

  1. {% extends "admin/admin_base.html" %}
  2. {% load static %}
  3. {% block content-area %}
  4. <div class="columns">
  5. <div class="column is-12">
  6. <div class="card">
  7. <header class="card-header">
  8. <p class="card-header-title">
  9. Import text items
  10. </p>
  11. <a href="#" class="card-header-icon" aria-label="more options">
  12. <span class="icon">
  13. <i class="fas fa-angle-down" aria-hidden="true"></i>
  14. </span>
  15. </a>
  16. </header>
  17. <div class="card-content">
  18. <p>
  19. <b>To annotate texts, you first need to import a set of text items to annotate it.</b>
  20. </p>
  21. <p>
  22. Each line should contain a text.
  23. </p>
  24. <form action="" method="post" enctype="multipart/form-data">
  25. {% csrf_token %}
  26. <div class="section">
  27. <div class="control">
  28. <label class="radio" style="margin-bottom:10px;">
  29. <input type="radio" name="format" checked> Upload a TXT file from your computer
  30. </label>
  31. <div class="file is-small" style="margin-bottom:20px;">
  32. <label class="file-label">
  33. <input class="file-input" type="file" name="csv_file" required>
  34. <span class="file-cta">
  35. <span class="file-icon">
  36. <i class="fas fa-upload"></i>
  37. </span>
  38. <span class="file-label">
  39. Select a file…
  40. </span>
  41. </span>
  42. </label>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="field is-grouped">
  47. <div class="control">
  48. <button type="submit" class="button is-primary">Upload dataset</button>
  49. </div>
  50. <div class="control">
  51. <button class="button is-text">Cancel</button>
  52. </div>
  53. </div>
  54. </form>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. {% endblock %}