moviewyrm/bookwyrm/templates/snippets/create_status/content_warning_field.html

13 lines
555 B
HTML
Raw Normal View History

2021-02-28 02:48:10 +00:00
{% load i18n %}
<div class="control{% if not parent_status.content_warning and not draft.content_warning %} is-hidden{% endif %}" id="spoilers_{{ uuid }}">
<label class="is-sr-only" for="id_content_warning_{{ uuid }}">{% trans "Spoiler alert:" %}</label>
2021-04-03 22:47:47 +00:00
<input
type="text"
name="content_warning"
maxlength="255"
class="input"
id="id_content_warning_{{ uuid }}"
2021-04-03 22:47:47 +00:00
placeholder="{% trans 'Spoilers ahead!' %}"
value="{% firstof draft.content_warning parent_status.content_warning '' %}">
2020-12-17 19:05:37 +00:00
</div>