bookwyrm-mastodon/bookwyrm/templates/snippets/create_status/content_warning_field.html

23 lines
716 B
HTML
Raw Normal View History

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 '' %}"
data-cache-draft="id_content_warning_{{ book.id }}_{{ type }}"
>
2020-12-17 14:05:37 -05:00
</div>