From 68a489dbe0336072f1db02940782c9b7ac326477 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 5 Dec 2021 11:02:36 -0800 Subject: [PATCH] Add isni to edit author form --- bookwyrm/forms.py | 1 + bookwyrm/templates/author/edit_author.html | 27 ++++++++++++++-------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/bookwyrm/forms.py b/bookwyrm/forms.py index 2a4759fb8..7ba7bd97b 100644 --- a/bookwyrm/forms.py +++ b/bookwyrm/forms.py @@ -293,6 +293,7 @@ class AuthorForm(CustomForm): "inventaire_id", "librarything_key", "goodreads_key", + "isni", ] widgets = { "name": forms.TextInput(attrs={"aria-describedby": "desc_name"}), diff --git a/bookwyrm/templates/author/edit_author.html b/bookwyrm/templates/author/edit_author.html index de1a7875e..6f72b8700 100644 --- a/bookwyrm/templates/author/edit_author.html +++ b/bookwyrm/templates/author/edit_author.html @@ -35,7 +35,7 @@ {{ form.name }} - {% include 'snippets/form_errors.html' with errors_list=form.name.errors id="desc_name" %} + {% include 'snippets/form_errors.html' with errors_list=form.name.errors id="desc_name" %}
@@ -43,32 +43,32 @@ {{ form.aliases }} {% trans "Separate multiple values with commas." %} - {% include 'snippets/form_errors.html' with errors_list=form.aliases.errors id="desc_aliases" %} + {% include 'snippets/form_errors.html' with errors_list=form.aliases.errors id="desc_aliases" %}
{{ form.bio }} - {% include 'snippets/form_errors.html' with errors_list=form.bio.errors id="desc_bio" %} + {% include 'snippets/form_errors.html' with errors_list=form.bio.errors id="desc_bio" %}

{{ form.wikipedia_link }}

- {% include 'snippets/form_errors.html' with errors_list=form.wikipedia_link.errors id="desc_wikipedia_link" %} + {% include 'snippets/form_errors.html' with errors_list=form.wikipedia_link.errors id="desc_wikipedia_link" %}
- {% include 'snippets/form_errors.html' with errors_list=form.born.errors id="desc_born" %} + {% include 'snippets/form_errors.html' with errors_list=form.born.errors id="desc_born" %}
- {% include 'snippets/form_errors.html' with errors_list=form.died.errors id="desc_died" %} + {% include 'snippets/form_errors.html' with errors_list=form.died.errors id="desc_died" %}
@@ -77,28 +77,35 @@ {{ form.openlibrary_key }} - {% include 'snippets/form_errors.html' with errors_list=form.oepnlibrary_key.errors id="desc_oepnlibrary_key" %} + {% include 'snippets/form_errors.html' with errors_list=form.oepnlibrary_key.errors id="desc_oepnlibrary_key" %}
{{ form.inventaire_id }} - {% include 'snippets/form_errors.html' with errors_list=form.inventaire_id.errors id="desc_inventaire_id" %} + {% include 'snippets/form_errors.html' with errors_list=form.inventaire_id.errors id="desc_inventaire_id" %}
{{ form.librarything_key }} - {% include 'snippets/form_errors.html' with errors_list=form.librarything_key.errors id="desc_librarything_key" %} + {% include 'snippets/form_errors.html' with errors_list=form.librarything_key.errors id="desc_librarything_key" %}
{{ form.goodreads_key }} - {% include 'snippets/form_errors.html' with errors_list=form.goodreads_key.errors id="desc_goodreads_key" %} + {% include 'snippets/form_errors.html' with errors_list=form.goodreads_key.errors id="desc_goodreads_key" %} +
+ +
+ + {{ form.isni }} + + {% include 'snippets/form_errors.html' with errors_list=form.isni.errors id="desc_isni" %}