2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-09-18 18:56:32 +00:00
|
|
|
<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>
|
2021-04-03 22:47:47 +00:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="content_warning"
|
|
|
|
maxlength="255"
|
|
|
|
class="input"
|
2021-08-09 01:40:47 +00:00
|
|
|
id="id_content_warning_{{ uuid }}"
|
2021-04-03 22:47:47 +00:00
|
|
|
placeholder="{% trans 'Spoilers ahead!' %}"
|
2021-09-09 02:30:24 +00:00
|
|
|
value="{% firstof draft.content_warning parent_status.content_warning '' %}"
|
|
|
|
data-cache-draft="id_content_warning_{{ book.id }}_{{ type }}"
|
|
|
|
>
|
2020-12-17 19:05:37 +00:00
|
|
|
</div>
|