Updates references to book templates

This commit is contained in:
Mouse Reeve 2021-09-29 13:23:52 -07:00
parent 1e5a8dc3db
commit 899e6b55a8
5 changed files with 10 additions and 10 deletions

View file

@ -109,7 +109,7 @@
<hr class="block">
{% endif %}
{% include "book/edit_book_form.html" %}
{% include "book/edit/edit_book_form.html" %}
{% if not confirm_mode %}
<div class="block">

View file

@ -1,7 +1,7 @@
{% extends 'snippets/filters_panel/filters_panel.html' %}
{% block filter_fields %}
{% include 'book/search_filter.html' %}
{% include 'book/language_filter.html' %}
{% include 'book/format_filter.html' %}
{% include 'book/editions/search_filter.html' %}
{% include 'book/editions/language_filter.html' %}
{% include 'book/editions/format_filter.html' %}
{% endblock %}

View file

@ -8,7 +8,7 @@
<h1 class="title">{% blocktrans with work_path=work.local_path work_title=work|book_title %}Editions of <a href="{{ work_path }}">"{{ work_title }}"</a>{% endblocktrans %}</h1>
</div>
{% include 'book/edition_filters.html' %}
{% include 'book/editions/edition_filters.html' %}
<div class="block">
{% for book in editions %}

View file

@ -138,7 +138,7 @@ class EditBook(View):
if not book.description:
book.description = book.parent_work.description
data = {"book": book, "form": forms.EditionForm(instance=book)}
return TemplateResponse(request, "book/edit_book.html", data)
return TemplateResponse(request, "book/edit/edit_book.html", data)
def post(self, request, book_id=None):
"""edit a book cool"""
@ -148,7 +148,7 @@ class EditBook(View):
data = {"book": book, "form": form}
if not form.is_valid():
return TemplateResponse(request, "book/edit_book.html", data)
return TemplateResponse(request, "book/edit/edit_book.html", data)
add_author = request.POST.get("add_author")
# we're adding an author through a free text field
@ -207,7 +207,7 @@ class EditBook(View):
except (MultiValueDictKeyError, ValueError):
pass
data["form"].data = formcopy
return TemplateResponse(request, "book/edit_book.html", data)
return TemplateResponse(request, "book/edit/edit_book.html", data)
remove_authors = request.POST.getlist("remove_authors")
for author_id in remove_authors:
@ -238,7 +238,7 @@ class ConfirmEditBook(View):
data = {"book": book, "form": form}
if not form.is_valid():
return TemplateResponse(request, "book/edit_book.html", data)
return TemplateResponse(request, "book/edit/edit_book.html", data)
with transaction.atomic():
# save book

View file

@ -66,7 +66,7 @@ class Editions(View):
e.physical_format.lower() for e in editions if e.physical_format
),
}
return TemplateResponse(request, "book/editions.html", data)
return TemplateResponse(request, "book/editions/editions.html", data)
@login_required