moviewyrm/bookwyrm/templates/import.html

22 lines
664 B
HTML
Raw Normal View History

2020-03-23 16:40:09 +00:00
{% extends 'layout.html' %}
{% load humanize %}
2020-03-23 16:40:09 +00:00
{% block content %}
2020-03-27 16:33:31 +00:00
<div class="content-container">
<h2>Import Books from GoodReads</h2>
2020-03-23 16:40:09 +00:00
<form name="import" action="/import_data/" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ import_form.as_p }}
<button type="submit">Import</button>
</form>
<p>
Imports are limited in size, and only the first {{ limit }} items will be imported.
<h2>Recent Imports</h2>
<ul>
{% for job in jobs %}
<li><a href="/import_status/{{ job.id }}">{{ job.created_date | naturaltime }}</a></li>
{% endfor %}
</ul>
2020-03-23 16:40:09 +00:00
</div>
{% endblock %}