Show label for content warning field

This commit is contained in:
Mouse Reeve
2021-09-18 11:56:32 -07:00
parent d366257909
commit 0fe5cb1000
2 changed files with 22 additions and 18 deletions

View File

@ -1,6 +1,14 @@
{% 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>
<div
class="field{% if not parent_status.content_warning and not draft.content_warning %} is-hidden{% endif %}"
id="spoilers_{{ uuid }}"
>
<label
class="label"
for="id_content_warning_{{ uuid }}"
>
{% trans "Content warning:" %}
</label>
<input
type="text"
name="content_warning"