mirror of https://github.com/doccano/doccano.git
Hironsan
6 years ago
1 changed files with 50 additions and 110 deletions
Unified View
Diff Options
@ -1,121 +1,61 @@ |
|||||
{% extends "admin/admin_base.html" %} {% load static %} {% block content-area %} |
|
||||
|
{% extends "admin/admin_base.html" %} |
||||
|
{% load static %} |
||||
|
{% block content-area %} |
||||
<div class="columns"> |
<div class="columns"> |
||||
<div class="column is-12"> |
|
||||
|
|
||||
<div class="card"> |
|
||||
<header class="card-header"> |
|
||||
<p class="card-header-title"> |
|
||||
Import text items |
|
||||
</p> |
|
||||
<a href="#" class="card-header-icon" aria-label="more options"> |
|
||||
<span class="icon"> |
|
||||
<i class="fas fa-angle-down" aria-hidden="true"></i> |
|
||||
</span> |
|
||||
</a> |
|
||||
</header> |
|
||||
<div class="card-content"> |
|
||||
<p> |
|
||||
<b>To annotate texts, you first need to import a set of text items to annotate it.</b> |
|
||||
</p> |
|
||||
<p> |
|
||||
Each item should contain a text. |
|
||||
</p> |
|
||||
<form action="" method="post" enctype="multipart/form-data"> |
|
||||
{% csrf_token %} |
|
||||
<div class="section"> |
|
||||
<div class="control"> |
|
||||
<label class="radio" style="margin-bottom:10px;"> |
|
||||
<input type="radio" name="format" checked> Upload a CSV file from your computer |
|
||||
</label> |
|
||||
<div class="file is-small" style="margin-bottom:20px;"> |
|
||||
<label class="file-label"> |
|
||||
<input class="file-input" type="file" name="csv_file" required> |
|
||||
<span class="file-cta"> |
|
||||
<span class="file-icon"> |
|
||||
<i class="fas fa-upload"></i> |
|
||||
</span> |
|
||||
<span class="file-label"> |
|
||||
Select a file… |
|
||||
</span> |
|
||||
</span> |
|
||||
</label> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="field is-grouped"> |
|
||||
<div class="control"> |
|
||||
<button type="submit" class="button is-primary">Upload dataset</button> |
|
||||
</div> |
|
||||
<div class="control"> |
|
||||
<button class="button is-text">Cancel</button> |
|
||||
</div> |
|
||||
</div> |
|
||||
</form> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<!-- |
|
||||
<div class="column is-7"> |
|
||||
<h1 class="title">Import text items</h1> |
|
||||
|
|
||||
<p> |
|
||||
<b>To annotate texts, you first need to import a set of text items to annotate it.</b> |
|
||||
Each item should contain a text. |
|
||||
</p> |
|
||||
|
|
||||
<div class="section"> |
|
||||
|
<div class="column is-12"> |
||||
|
|
||||
|
<div class="card"> |
||||
|
<header class="card-header"> |
||||
|
<p class="card-header-title"> |
||||
|
Import text items |
||||
|
</p> |
||||
|
<a href="#" class="card-header-icon" aria-label="more options"> |
||||
|
<span class="icon"> |
||||
|
<i class="fas fa-angle-down" aria-hidden="true"></i> |
||||
|
</span> |
||||
|
</a> |
||||
|
</header> |
||||
|
<div class="card-content"> |
||||
|
<p> |
||||
|
<b>To annotate texts, you first need to import a set of text items to annotate it.</b> |
||||
|
</p> |
||||
|
<p> |
||||
|
Each item should contain a text. |
||||
|
</p> |
||||
<form action="" method="post" enctype="multipart/form-data"> |
<form action="" method="post" enctype="multipart/form-data"> |
||||
{% csrf_token %} |
|
||||
|
{% csrf_token %} |
||||
|
<div class="section"> |
||||
<div class="control"> |
<div class="control"> |
||||
<label class="radio" style="margin-bottom:10px;"> |
|
||||
<input type="radio" name="format" checked> Upload a CSV file from your computer |
|
||||
</label> |
|
||||
<div class="file is-small" style="margin-bottom:20px;"> |
|
||||
<label class="file-label"> |
|
||||
<input class="file-input" type="file" name="csv_file" required> |
|
||||
<span class="file-cta"> |
|
||||
<span class="file-icon"> |
|
||||
<i class="fas fa-upload"></i> |
|
||||
</span> |
|
||||
<span class="file-label"> |
|
||||
Select a file… |
|
||||
</span> |
|
||||
</span> |
|
||||
</label> |
|
||||
</div> |
|
||||
|
|
||||
<label class="radio" style="margin-bottom:10px;"> |
|
||||
<input type="radio" name="format"> Upload text items from your computer |
|
||||
</label> |
|
||||
<div class="file is-small"> |
|
||||
|
<label class="radio" style="margin-bottom:10px;"> |
||||
|
<input type="radio" name="format" checked> Upload a CSV file from your computer |
||||
|
</label> |
||||
|
<div class="file is-small" style="margin-bottom:20px;"> |
||||
<label class="file-label"> |
<label class="file-label"> |
||||
<input class="file-input" type="file" name="resume"> |
|
||||
<span class="file-cta"> |
|
||||
<span class="file-icon"> |
|
||||
<i class="fas fa-upload"></i> |
|
||||
</span> |
|
||||
<span class="file-label"> |
|
||||
Select a file… |
|
||||
</span> |
|
||||
|
<input class="file-input" type="file" name="csv_file" required> |
||||
|
<span class="file-cta"> |
||||
|
<span class="file-icon"> |
||||
|
<i class="fas fa-upload"></i> |
||||
|
</span> |
||||
|
<span class="file-label"> |
||||
|
Select a file… |
||||
</span> |
</span> |
||||
|
</span> |
||||
</label> |
</label> |
||||
|
</div> |
||||
</div> |
</div> |
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
|
</div> |
||||
|
|
||||
<div class="field is-grouped"> |
|
||||
<div class="control"> |
|
||||
<button type="submit" class="button is-primary">Upload dataset</button> |
|
||||
</div> |
|
||||
<div class="control"> |
|
||||
<button class="button is-text">Cancel</button> |
|
||||
</div> |
|
||||
|
<div class="field is-grouped"> |
||||
|
<div class="control"> |
||||
|
<button type="submit" class="button is-primary">Upload dataset</button> |
||||
|
</div> |
||||
|
<div class="control"> |
||||
|
<button class="button is-text">Cancel</button> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
</div> |
</div> |
||||
</form> |
|
||||
|
</div> |
||||
</div> |
</div> |
||||
--> |
|
||||
{% endblock %} |
{% endblock %} |
Write
Preview
Loading…
Cancel
Save