Use label "for" on checkboxes

This commit is contained in:
Yingtong Li 2019-01-26 12:42:36 +11:00
parent 3b99aa2d73
commit 62ebe96520
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -77,8 +77,8 @@
{% for group in groups %}
<div class="field" style="display: inline; margin-right: 1em;">
<div class="ui checkbox">
<input type="checkbox" name="also_limit_{{ group.id }}"{% if group.id in item.also_limit %} checked{% endif %}>
<label>{{ group.name }}</label>
<input type="checkbox" name="also_limit_{{ group.id }}" id="also_limit_{{ group.id }}"{% if group.id in item.also_limit %} checked{% endif %}>
<label for="also_limit_{{ group.id }}">{{ group.name }}</label>
</div>
</div>
{% endfor %}