moviewyrm/bookwyrm/templates/import.html

57 lines
1.8 KiB
HTML
Raw Normal View History

2020-03-23 16:40:09 +00:00
{% extends 'layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
{% load humanize %}
{% block title %}{% trans "Import Books" %}{% endblock %}
2020-03-23 16:40:09 +00:00
{% block content %}
2020-09-30 04:45:59 +00:00
<div class="block">
<h1 class="title">{% trans "Import Books" %}</h1>
2021-01-12 19:28:03 +00:00
<form name="import" action="/import" method="post" enctype="multipart/form-data">
2020-03-23 16:40:09 +00:00
{% csrf_token %}
2021-02-20 16:02:36 +00:00
<label class="label" for="source">
2021-03-04 18:42:23 +00:00
<p>{% trans "Data source" %}</p>
2021-02-20 16:02:36 +00:00
<div class="select {{ class }}">
2021-03-04 18:42:23 +00:00
<select name="source" id="source">
<option value="GoodReads" {% if current == 'GoodReads' %}selected{% endif %}>
GoodReads
</option>
<option value="LibraryThing" {% if current == 'LibraryThing' %}selected{% endif %}>
LibraryThing
</option>
</select>
2021-02-20 16:02:36 +00:00
</div>
</label>
<div class="field">
{{ import_form.as_p }}
</div>
<div class="field">
2020-11-09 20:40:22 +00:00
<label class="label">
<input type="checkbox" name="include_reviews" checked> {% trans "Include reviews" %}
2020-11-09 20:40:22 +00:00
</label>
</div>
<div class="field">
<label class="label">
<p>{% trans "Privacy setting for imported reviews:" %}</p>
2020-11-09 20:40:22 +00:00
{% include 'snippets/privacy_select.html' with no_label=True %}
</label>
</div>
<button class="button is-primary" type="submit">{% trans "Import" %}</button>
2020-03-23 16:40:09 +00:00
</form>
2020-09-30 04:45:59 +00:00
</div>
2020-09-30 04:45:59 +00:00
<div class="content block">
<h2 class="title">{% trans "Recent Imports" %}</h2>
2020-09-30 04:45:59 +00:00
{% if not jobs %}
<p>{% trans "No recent imports" %}</p>
2020-09-30 04:45:59 +00:00
{% endif %}
<ul>
{% for job in jobs %}
2021-01-12 19:28:03 +00:00
<li><a href="/import/{{ job.id }}">{{ job.created_date | naturaltime }}</a></li>
{% endfor %}
</ul>
2020-03-23 16:40:09 +00:00
</div>
{% endblock %}