Allow book subjects to be edited

This commit is contained in:
Levi Bard 2022-03-09 10:33:59 +01:00
parent ad1969162f
commit 0c0d0b6299
2 changed files with 15 additions and 0 deletions

View file

@ -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"}
), ),

View file

@ -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>