2021-02-27 21:48:10 -05:00
|
|
|
{% load i18n %}
|
2021-09-18 14:56:32 -04:00
|
|
|
<div
|
2021-09-18 19:27:13 -04:00
|
|
|
class="field{% if not reply_parent.content_warning and not draft.content_warning %} is-hidden{% endif %}"
|
2021-09-18 17:05:17 -04:00
|
|
|
id="spoilers_{{ uuid }}{{ local_uuid }}"
|
2021-09-18 14:56:32 -04:00
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="label"
|
2021-09-18 17:05:17 -04:00
|
|
|
for="id_content_warning_{{ uuid }}{{ local_uuid }}"
|
2021-09-18 14:56:32 -04:00
|
|
|
>
|
|
|
|
{% trans "Content warning:" %}
|
|
|
|
</label>
|
2021-04-03 18:47:47 -04:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="content_warning"
|
|
|
|
maxlength="255"
|
|
|
|
class="input"
|
2021-09-18 17:05:17 -04:00
|
|
|
id="id_content_warning_{{ uuid }}{{ local_uuid }}"
|
2021-04-03 18:47:47 -04:00
|
|
|
placeholder="{% trans 'Spoilers ahead!' %}"
|
2021-09-18 19:27:13 -04:00
|
|
|
value="{% firstof draft.content_warning reply_parent.content_warning '' %}"
|
2021-10-14 19:53:46 -04:00
|
|
|
{% if not draft %}data-cache-draft="id_content_warning_{{ book.id }}_{{ type }}"{% endif %}
|
2021-09-08 22:30:24 -04:00
|
|
|
>
|
2020-12-17 14:05:37 -05:00
|
|
|
</div>
|