From 0c0d0b6299c222b8e16bd2ab56b9a544c9675daa Mon Sep 17 00:00:00 2001 From: Levi Bard Date: Wed, 9 Mar 2022 10:33:59 +0100 Subject: [PATCH] Allow book subjects to be edited --- bookwyrm/forms.py | 3 +++ bookwyrm/templates/book/edit/edit_book_form.html | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/bookwyrm/forms.py b/bookwyrm/forms.py index f152ed4e..83269def 100644 --- a/bookwyrm/forms.py +++ b/bookwyrm/forms.py @@ -296,6 +296,9 @@ class EditionForm(CustomForm): "languages": forms.TextInput( attrs={"aria-describedby": "desc_languages_help desc_languages"} ), + "subjects": forms.TextInput( + attrs={"aria-describedby": "desc_subjects_help desc_subjects"} + ), "publishers": forms.TextInput( attrs={"aria-describedby": "desc_publishers_help desc_publishers"} ), diff --git a/bookwyrm/templates/book/edit/edit_book_form.html b/bookwyrm/templates/book/edit/edit_book_form.html index fd2516a6..d95aa725 100644 --- a/bookwyrm/templates/book/edit/edit_book_form.html +++ b/bookwyrm/templates/book/edit/edit_book_form.html @@ -77,6 +77,18 @@ {% include 'snippets/form_errors.html' with errors_list=form.languages.errors id="desc_languages" %} + +
+ + {{ form.subjects }} + + {% trans "Separate multiple values with commas." %} + + + {% include 'snippets/form_errors.html' with errors_list=form.subjects.errors id="desc_subjects" %} +