Fixes labels on import page

This commit is contained in:
Mouse Reeve 2020-11-09 12:40:22 -08:00
parent cdc7af89cf
commit a40a1bdcb4
2 changed files with 8 additions and 10 deletions

View file

@ -9,18 +9,14 @@
{{ import_form.as_p }}
</div>
<div class="field">
<label class="label" for="include_reviews"><input type="checkbox" name="include_reviews" checked> Include reviews</label>
<label class="label">
<input type="checkbox" name="include_reviews" checked> Include reviews
</label>
</div>
<div class="field">
<label class="label" for="privacy">Privacy setting for imported reviews</label>
<div class="select">
<select name="privacy">
<option value="public" selected>Public</option>
<option value="unlisted">Unlisted</option>
<option value="followers">Followers only</option>
<option value="direct">Private</option>
</select>
</div>
<label class="label">Privacy setting for imported reviews
{% include 'snippets/privacy_select.html' with no_label=True %}
</label>
</div>
<button class="button is-primary" type="submit">Import</button>
</form>

View file

@ -1,7 +1,9 @@
{% load fr_display %}
<div class="select">
{% with 0|uuid as uuid %}
{% if not no_label %}
<label class="is-sr-only" for="privacy-{{ uuid }}">Post privacy</label>
{% endif %}
<select name="privacy" id="privacy-{{ uuid }}">
<option value="public" selected>Public</option>
<option value="unlisted">Unlisted</option>