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 }} {{ import_form.as_p }}
</div> </div>
<div class="field"> <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>
<div class="field"> <div class="field">
<label class="label" for="privacy">Privacy setting for imported reviews</label> <label class="label">Privacy setting for imported reviews
<div class="select"> {% include 'snippets/privacy_select.html' with no_label=True %}
<select name="privacy"> </label>
<option value="public" selected>Public</option>
<option value="unlisted">Unlisted</option>
<option value="followers">Followers only</option>
<option value="direct">Private</option>
</select>
</div>
</div> </div>
<button class="button is-primary" type="submit">Import</button> <button class="button is-primary" type="submit">Import</button>
</form> </form>

View file

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