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.

120 lines
4.8 KiB

  1. {% extends "admin/admin_base.html" %} {% load static %} {% block content-area %}
  2. <div class="columns">
  3. <div class="column is-12">
  4. <div class="card">
  5. <header class="card-header">
  6. <p class="card-header-title">
  7. Import text items
  8. </p>
  9. <a href="#" class="card-header-icon" aria-label="more options">
  10. <span class="icon">
  11. <i class="fas fa-angle-down" aria-hidden="true"></i>
  12. </span>
  13. </a>
  14. </header>
  15. <div class="card-content">
  16. <p>
  17. <b>To annotate texts, you first need to import a set of text items to annotate it.</b>
  18. </p>
  19. <p>
  20. Each item should contain a text.
  21. </p>
  22. <form action="" method="post" enctype="multipart/form-data">
  23. {% csrf_token %}
  24. <div class="section">
  25. <div class="control">
  26. <label class="radio" style="margin-bottom:10px;">
  27. <input type="radio" name="format" checked> Upload a CSV file from your computer
  28. </label>
  29. <div class="file is-small" style="margin-bottom:20px;">
  30. <label class="file-label">
  31. <input class="file-input" type="file" name="csv_file" required>
  32. <span class="file-cta">
  33. <span class="file-icon">
  34. <i class="fas fa-upload"></i>
  35. </span>
  36. <span class="file-label">
  37. Select a file…
  38. </span>
  39. </span>
  40. </label>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="field is-grouped">
  45. <div class="control">
  46. <button type="submit" class="button is-primary">Upload dataset</button>
  47. </div>
  48. <div class="control">
  49. <button class="button is-text">Cancel</button>
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <!--
  58. <div class="column is-7">
  59. <h1 class="title">Import text items</h1>
  60. <p>
  61. <b>To annotate texts, you first need to import a set of text items to annotate it.</b>
  62. Each item should contain a text.
  63. </p>
  64. <div class="section">
  65. <form action="" method="post" enctype="multipart/form-data">
  66. {% csrf_token %}
  67. <div class="control">
  68. <label class="radio" style="margin-bottom:10px;">
  69. <input type="radio" name="format" checked> Upload a CSV file from your computer
  70. </label>
  71. <div class="file is-small" style="margin-bottom:20px;">
  72. <label class="file-label">
  73. <input class="file-input" type="file" name="csv_file" required>
  74. <span class="file-cta">
  75. <span class="file-icon">
  76. <i class="fas fa-upload"></i>
  77. </span>
  78. <span class="file-label">
  79. Select a file…
  80. </span>
  81. </span>
  82. </label>
  83. </div>
  84. <label class="radio" style="margin-bottom:10px;">
  85. <input type="radio" name="format"> Upload text items from your computer
  86. </label>
  87. <div class="file is-small">
  88. <label class="file-label">
  89. <input class="file-input" type="file" name="resume">
  90. <span class="file-cta">
  91. <span class="file-icon">
  92. <i class="fas fa-upload"></i>
  93. </span>
  94. <span class="file-label">
  95. Select a file…
  96. </span>
  97. </span>
  98. </label>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="field is-grouped">
  103. <div class="control">
  104. <button type="submit" class="button is-primary">Upload dataset</button>
  105. </div>
  106. <div class="control">
  107. <button class="button is-text">Cancel</button>
  108. </div>
  109. </div>
  110. </form>
  111. </div>
  112. -->
  113. {% endblock %}