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> </option>
</select> </select>
</div> </div>
{% include 'components/tooltip.html' with controls_text="goodreads-tooltip" %}
<div class="field"> <div class="field">
<label class="label" for="id_csv_file">{% trans "Data file:" %}</label> <label class="label" for="id_csv_file">{% trans "Data file:" %}</label>
{{ import_form.csv_file }} {{ import_form.csv_file }}

View file

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