forked from mirrors/bookwyrm
22 lines
670 B
HTML
22 lines
670 B
HTML
{% load i18n %}
|
|
<div
|
|
class="field{% if not parent_status.content_warning and not draft.content_warning %} is-hidden{% endif %}"
|
|
id="spoilers_{{ uuid }}"
|
|
>
|
|
<label
|
|
class="label"
|
|
for="id_content_warning_{{ uuid }}"
|
|
>
|
|
{% trans "Content warning:" %}
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="content_warning"
|
|
maxlength="255"
|
|
class="input"
|
|
id="id_content_warning_{{ uuid }}"
|
|
placeholder="{% trans 'Spoilers ahead!' %}"
|
|
value="{% firstof draft.content_warning parent_status.content_warning '' %}"
|
|
data-cache-draft="id_content_warning_{{ book.id }}_{{ type }}"
|
|
>
|
|
</div>
|