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

@ -74,14 +74,14 @@
<div class="ui inline grid field">
<label class="three wide column">Also limit to</label>
<div class="eleven wide column">
{% 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>
</div>
{% 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 }}" id="also_limit_{{ group.id }}"{% if group.id in item.also_limit %} checked{% endif %}>
<label for="also_limit_{{ group.id }}">{{ group.name }}</label>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
<div class="ui divider"></div>