mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-23 23:48:07 +00:00
goodreads_key for books editable
The field goodreads_key is now editable. ID shows in ID section of book.
This commit is contained in:
parent
309d5a535a
commit
8325fbd772
3 changed files with 18 additions and 0 deletions
|
@ -73,6 +73,9 @@ class EditionForm(CustomForm):
|
||||||
"inventaire_id": forms.TextInput(
|
"inventaire_id": forms.TextInput(
|
||||||
attrs={"aria-describedby": "desc_inventaire_id"}
|
attrs={"aria-describedby": "desc_inventaire_id"}
|
||||||
),
|
),
|
||||||
|
"goodreads_key": forms.TextInput(
|
||||||
|
attrs={"aria-describedby": "desc_goodreads_key"}
|
||||||
|
),
|
||||||
"oclc_number": forms.TextInput(
|
"oclc_number": forms.TextInput(
|
||||||
attrs={"aria-describedby": "desc_oclc_number"}
|
attrs={"aria-describedby": "desc_oclc_number"}
|
||||||
),
|
),
|
||||||
|
|
|
@ -23,6 +23,12 @@
|
||||||
<dd>{{ book.asin }}</dd>
|
<dd>{{ book.asin }}</dd>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if book.goodreads_key %}
|
||||||
|
<div class="is-flex">
|
||||||
|
<dt class="mr-1">{% trans "Goodreads:" %}</dt>
|
||||||
|
<dd>{{ book.goodreads_key }}</dd>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
|
|
|
@ -327,6 +327,15 @@
|
||||||
{% 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" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="field">
|
||||||
|
<label class="label" for="id_goodreads_key">
|
||||||
|
{% trans "Goodreads key:" %}
|
||||||
|
</label>
|
||||||
|
{{ form.goodreads_key }}
|
||||||
|
|
||||||
|
{% include 'snippets/form_errors.html' with errors_list=form.goodreads_key.errors id="desc_goodreads_key" %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="id_oclc_number">
|
<label class="label" for="id_oclc_number">
|
||||||
{% trans "OCLC Number:" %}
|
{% trans "OCLC Number:" %}
|
||||||
|
|
Loading…
Reference in a new issue