forked from mirrors/bookwyrm
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(
|
"languages": forms.TextInput(
|
||||||
attrs={"aria-describedby": "desc_languages_help desc_languages"}
|
attrs={"aria-describedby": "desc_languages_help desc_languages"}
|
||||||
),
|
),
|
||||||
|
"subjects": forms.TextInput(
|
||||||
|
attrs={"aria-describedby": "desc_subjects_help desc_subjects"}
|
||||||
|
),
|
||||||
"publishers": forms.TextInput(
|
"publishers": forms.TextInput(
|
||||||
attrs={"aria-describedby": "desc_publishers_help desc_publishers"}
|
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" %}
|
{% include 'snippets/form_errors.html' with errors_list=form.languages.errors id="desc_languages" %}
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue