Move import templates into directory

This commit is contained in:
Mouse Reeve 2021-09-08 07:28:42 -07:00
parent d63e7243f5
commit e13e13d3f3
3 changed files with 3 additions and 2 deletions

View file

@ -28,6 +28,7 @@
</option>
</select>
</div>
{% include 'components/tooltip.html' with controls_text="goodreads-tooltip" %}
<div class="field">
<label class="label" for="id_csv_file">{% trans "Data file:" %}</label>
{{ import_form.csv_file }}

View file

@ -28,7 +28,7 @@ class Import(View):
"""load import page"""
return TemplateResponse(
request,
"import.html",
"import/import.html",
{
"import_form": forms.ImportForm(),
"jobs": models.ImportJob.objects.filter(user=request.user).order_by(
@ -94,7 +94,7 @@ class ImportStatus(View):
items = [i for i in items if not i.fail_reason]
return TemplateResponse(
request,
"import_status.html",
"import/import_status.html",
{"job": job, "items": items, "failed_items": failed_items, "task": task},
)