forked from mirrors/bookwyrm
Show label for content warning field
This commit is contained in:
parent
d366257909
commit
0fe5cb1000
2 changed files with 22 additions and 18 deletions
|
@ -1,6 +1,14 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<div class="control{% if not parent_status.content_warning and not draft.content_warning %} is-hidden{% endif %}" id="spoilers_{{ uuid }}">
|
<div
|
||||||
<label class="is-sr-only" for="id_content_warning_{{ uuid }}">{% trans "Spoiler alert:" %}</label>
|
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
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="content_warning"
|
name="content_warning"
|
||||||
|
|
|
@ -25,23 +25,19 @@ reply_parent: the Status object this post will be in reply to, if applicable
|
||||||
<input type="hidden" name="reply_parent" value="{% firstof draft.reply_parent.id reply_parent.id %}">
|
<input type="hidden" name="reply_parent" value="{% firstof draft.reply_parent.id reply_parent.id %}">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% include "snippets/create_status/content_warning_field.html" %}
|
||||||
|
|
||||||
|
{# fields that go between the content warnings and the content field (ie, quote) #}
|
||||||
|
{% block pre_content_additions %}{% endblock %}
|
||||||
|
|
||||||
|
<label class="label" for="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}">
|
||||||
|
{% block content_label %}
|
||||||
|
{% trans "Comment:" %}
|
||||||
|
{% endblock %}
|
||||||
|
</label>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="control">
|
{% include "snippets/create_status/content_field.html" with placeholder=placeholder %}
|
||||||
{% include "snippets/create_status/content_warning_field.html" %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{# fields that go between the content warnings and the content field (ie, quote) #}
|
|
||||||
{% block pre_content_additions %}{% endblock %}
|
|
||||||
|
|
||||||
<label class="label" for="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}">
|
|
||||||
{% block content_label %}
|
|
||||||
{% trans "Comment:" %}
|
|
||||||
{% endblock %}
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<div class="control">
|
|
||||||
{% include "snippets/create_status/content_field.html" with placeholder=placeholder %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# additional fields that go after the content block (ie, progress) #}
|
{# additional fields that go after the content block (ie, progress) #}
|
||||||
|
|
Loading…
Reference in a new issue