fixed bugs 9 & 10, just missing quotes in html for hidden value

This commit is contained in:
2021-01-03 11:43:52 +11:00
parent 4ec84d1426
commit 4e4ff7f6c7
2 changed files with 1 additions and 12 deletions

View File

@@ -207,7 +207,7 @@ function AddAuthorToBook(num) {
or key == 'condition' or key == 'blurb' ) %}
{{book_form[key](class="form-control", rows=rows, disabled="disabled" )}}
{# disabled fields do not come through in form post, so add hidden to make it work #}
<input type="hidden" name={{key}} value={{book_form[key].data}}>
<input type="hidden" name="{{key}}" value="{{book_form[key].data}}">
{% else %}
{{book_form[key](class="form-control", rows=rows )}}
{% endif %}