2020-12-17 21:14:44 +00:00
|
|
|
{% load bookwyrm_tags %}
|
|
|
|
{% with 0|uuid as uuid %}
|
2020-12-17 19:05:37 +00:00
|
|
|
<div class="control">
|
|
|
|
<div>
|
2021-01-14 21:02:50 +00:00
|
|
|
<input type="radio" class="toggle-control" id="include-spoilers-{{ uuid }}" name="sensitive" value="true" {% if parent_status.content_warning %}checked{% endif %} data-hover-target="id_content_warning_{{ uuid }}">
|
2020-12-17 19:05:37 +00:00
|
|
|
<div class="toggle-content hidden">
|
2021-01-14 21:02:50 +00:00
|
|
|
<label class="is-sr-only" for="id_content_warning_{{ uuid }}">Spoilers/content warning:</label>
|
|
|
|
<input type="text" name="content_warning" maxlength="255" class="input" id="id_content_warning_{{ uuid }}" placeholder="Spoilers ahead!"{% if parent_status.content_warning %} value="{{ parent_status.content_warning }}"{% endif %}>
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with controls_text="hide-spoilers" controls_uid=uuid text="Remove spoilers/content warning" small=True %}
|
2020-12-17 19:05:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2021-01-14 21:02:50 +00:00
|
|
|
<input type="radio" class="toggle-control" name="sensitive" value="false" id="hide-spoilers-{{ uuid }}" {% if not parent_status.content_warning %}checked{% endif %}>
|
2020-12-17 19:05:37 +00:00
|
|
|
<div class="toggle-content hidden">
|
2021-01-14 21:02:50 +00:00
|
|
|
{% include 'snippets/toggle/toggle_button.html' with controls_text="include-spoilers" controls_uid=uuid text="Add spoilers/content warning" small=True %}
|
2020-12-17 19:05:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-17 19:32:09 +00:00
|
|
|
{% endwith %}
|