Ties draft functionality to more status fields

This commit is contained in:
Mouse Reeve
2021-09-08 19:30:24 -07:00
parent 59ec45496c
commit 71b2f91a73
6 changed files with 37 additions and 6 deletions

View File

@ -15,7 +15,17 @@ uuid: a unique identifier used to make html "id" attributes unique and clarify j
<div class="field">
<label class="label" for="id_name_{{ book.id }}">{% trans "Title:" %}</label>
<div class="control">
<input type="text" name="name" maxlength="255" class="input" required="" id="id_name_{{ book.id }}" placeholder="{% blocktrans with book_title=book.title %}Your review of '{{ book_title }}'{% endblocktrans %}" value="{% firstof draft.name ''%}">
<input
type="text"
name="name"
maxlength="255"
class="input"
required=""
id="id_name_{{ book.id }}"
placeholder="{% blocktrans with book_title=book.title %}Your review of '{{ book_title }}'{% endblocktrans %}"
value="{% firstof draft.name ''%}"
data-cache-draft="id_name_{{ book.id }}_{{ type }}"
>
</div>
</div>