Don't check other gender by default

This commit is contained in:
Socks 2018-04-17 14:48:46 +01:00
parent a1c628a101
commit 7e1d67de42

View file

@ -46,7 +46,7 @@
<label class="custom-control-label" for="genderInline2" onclick={document.getElementById("john").style="display:none;"}>Female</label>
</div>
<div class="custom-control custom-radio custom-control-inline mt-2">
<input type="radio" id="genderInline3" name="gender" value="Non-Binary" class="custom-control-input" {% if account.profile.gender!="Female" and account.profile.gender!="Male" %}checked{% endif %}>
<input type="radio" id="genderInline3" name="gender" value="Non-Binary" class="custom-control-input" {% if account.profile.gender and account.profile.gender!="Female" and account.profile.gender!="Male" %}checked{% endif %}>
<label class="custom-control-label" for="genderInline3" onclick={document.getElementById("john").style="display:block;"}>Other</label>
</div>
<input type="text" id="john" name="gender-custom" style="display:none;" name="location" class="form-control mt-2" placeholder="Gender" aria-describedby="basic-addon1" value="{{ account.profile.gender }}">