mirror of https://github.com/doccano/doccano.git
Bramble Xu
6 years ago
4 changed files with 63 additions and 5 deletions
Split View
Diff Options
-
3app/server/models.py
-
38app/server/templates/admin/dataset_download.html
-
3app/server/urls.py
-
24app/server/views.py
@ -0,0 +1,38 @@ |
|||
{% extends "admin/admin_base.html" %} |
|||
{% load static %} |
|||
{% block content-area %} |
|||
<div class="columns"> |
|||
<div class="column is-12"> |
|||
|
|||
<div class="card"> |
|||
<header class="card-header"> |
|||
<p class="card-header-title"> |
|||
Export 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>There are two data format you can download, the CSV and JSON.</b> |
|||
</p> |
|||
<p> |
|||
If you import as a JSON with line breaks and download it as CSV, the line breaks will render on the result. |
|||
We recommend you download it as JSON file. |
|||
</p> |
|||
<form action="{% url 'download_file' view.kwargs.project_id %}" method="get"> |
|||
<a class="control"> |
|||
<button type="submit" class="button is-primary" name="format" value="csv">Download CSV File</button> |
|||
</a> |
|||
<a class="control"> |
|||
<button type="submit" class="button is-primary" name="format" value="json">Download JSON File</button> |
|||
</a> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
{% endblock %} |
Write
Preview
Loading…
Cancel
Save