mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +00:00
Merge pull request #2000 from Tak/edit-subjects
Allow book subjects to be edited
This commit is contained in:
commit
6ddf1aad91
2 changed files with 15 additions and 0 deletions
|
@ -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"}
|
||||
),
|
||||
|
|
|
@ -77,6 +77,18 @@
|
|||
|
||||
{% include 'snippets/form_errors.html' with errors_list=form.languages.errors id="desc_languages" %}
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label class="label" for="id_subjects">
|
||||
{% trans "Subjects:" %}
|
||||
</label>
|
||||
{{ form.subjects }}
|
||||
<span class="help" id="desc_subjects_help">
|
||||
{% trans "Separate multiple values with commas." %}
|
||||
</span>
|
||||
|
||||
{% include 'snippets/form_errors.html' with errors_list=form.subjects.errors id="desc_subjects" %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Reference in a new issue