moviewyrm/bookwyrm/templates/snippets/content_warning_field.html

20 lines
1.2 KiB
HTML
Raw Normal View History

2020-12-17 19:32:09 +00:00
{% with uuid as uuid %}
2020-12-17 19:05:37 +00:00
<div class="control">
<div>
2020-12-17 19:32:09 +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">
2020-12-17 19:32:09 +00:00
<label class="button is-small" role="button" tabindex="0" for="include-spoilers-{{ uuid }}">Add spoilers/content warning</label>
2020-12-17 19:05:37 +00:00
</div>
</div>
<div>
2020-12-17 19:32:09 +00:00
<input type="radio" class="toggle-control" id="include-spoilers-{{ uuid }}" name="sensitive" value="true" {% if parent_status.content_warning %}checked{% endif %}>
2020-12-17 19:05:37 +00:00
<div class="toggle-content hidden">
2020-12-17 19:32:09 +00:00
<label class="button is-small" role="button" tabindex="0" for="hide-spoilers-{{ uuid }}">Remove spoilers/content warning</label>
<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 %}>
2020-12-17 19:05:37 +00:00
</div>
</div>
</div>
2020-12-17 19:32:09 +00:00
{% endwith %}