2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2022-03-10 17:03:24 +00:00
|
|
|
<div class="field is-relative">
|
|
|
|
<details
|
|
|
|
{% if reply_parent.content_warning or draft.content_warning %}open{% endif %}
|
2021-09-09 02:30:24 +00:00
|
|
|
>
|
2022-03-10 17:03:24 +00:00
|
|
|
<summary class="is-flex">
|
|
|
|
<span class="icon icon-warning is-size-5 mr-1" aria-hidden="true"></span>
|
|
|
|
<span>
|
|
|
|
{% trans "Include spoiler alert" %}
|
|
|
|
</span>
|
2022-03-10 17:16:50 +00:00
|
|
|
<span class="details-close icon icon-x" aria-hidden="true"></span>
|
2022-03-10 17:03:24 +00:00
|
|
|
</summary>
|
|
|
|
|
|
|
|
<label
|
|
|
|
class="label"
|
|
|
|
for="id_content_warning_{{ uuid }}{{ local_uuid }}"
|
|
|
|
>
|
2022-03-10 17:16:50 +00:00
|
|
|
{% trans "Spoilers/content warnings:" %}
|
2022-03-10 17:03:24 +00:00
|
|
|
</label>
|
|
|
|
<div class="control">
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="content_warning"
|
|
|
|
maxlength="255"
|
|
|
|
class="input"
|
|
|
|
id="id_content_warning_{{ uuid }}{{ local_uuid }}"
|
|
|
|
placeholder="{% trans 'Spoilers ahead!' %}"
|
|
|
|
value="{% firstof draft.content_warning reply_parent.content_warning '' %}"
|
|
|
|
{% if not draft %}data-cache-draft="id_content_warning_{{ book.id }}_{{ type }}"{% endif %}
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</details>
|
2020-12-17 19:05:37 +00:00
|
|
|
</div>
|