moviewyrm/bookwyrm/templates/snippets/content_warning_field.html

6 lines
482 B
HTML
Raw Normal View History

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