bookwyrm-mastodon/bookwyrm/templates/snippets/privacy_select.html

24 lines
797 B
HTML
Raw Normal View History

2020-12-12 21:25:04 -05:00
{% load bookwyrm_tags %}
2021-01-18 12:57:44 -05:00
<div class="select {{ class }}">
2020-11-09 14:43:12 -05:00
{% with 0|uuid as uuid %}
2020-11-09 15:40:22 -05:00
{% if not no_label %}
2020-11-09 14:43:12 -05:00
<label class="is-sr-only" for="privacy-{{ uuid }}">Post privacy</label>
2020-11-09 15:40:22 -05:00
{% endif %}
2020-11-09 14:43:12 -05:00
<select name="privacy" id="privacy-{{ uuid }}">
2020-11-10 23:11:21 -05:00
<option value="public" {% if not current or current == 'public' %}selected{% endif %}>
Public
</option>
<option value="unlisted" {% if current == 'unlisted' %}selected{% endif %}>
Unlisted
</option>
<option value="followers" {% if current == 'followers' %}selected{% endif %}>
2021-01-16 22:57:20 -05:00
Followers
2020-11-10 23:11:21 -05:00
</option>
<option value="direct" {% if current == 'direct' %}selected{% endif %}>
Private
</option>
2020-11-06 12:07:15 -05:00
</select>
2020-11-09 14:43:12 -05:00
{% endwith %}
2020-11-06 12:07:15 -05:00
</div>