aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
authorAlexandre Avenel <avenel.alexandre@gmail.com>2017-02-16 23:36:45 +0100
committerAlexandre Avenel <avenel.alexandre@gmail.com>2017-02-16 23:36:45 +0100
commit38d4534c69fed139b2d0cc8e9eba5cfe5e7e3925 (patch)
tree8f3c4366d5f555309dcf4c38647332501509d31f /budget/templates
parent4c02ad51ac2050161ac732ffe9d3f2467629f814 (diff)
downloadihatemoney-mirror-38d4534c69fed139b2d0cc8e9eba5cfe5e7e3925.zip
ihatemoney-mirror-38d4534c69fed139b2d0cc8e9eba5cfe5e7e3925.tar.gz
ihatemoney-mirror-38d4534c69fed139b2d0cc8e9eba5cfe5e7e3925.tar.bz2
Fix id in form label
Checking item was broken when clicking on the label instead of the checkbox
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/forms.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html
index 8698e37..3f8cc4a 100644
--- a/budget/templates/forms.html
+++ b/budget/templates/forms.html
@@ -92,7 +92,7 @@
<ul id="payed_for" class="inputs-list">
<p><a href="#" id="selectall" onclick="selectall()">{{ _("Select all") }}</a> | <a href="#" id="selectnone" onclick="selectnone()">{{_("Select none")}}</a></p>
{% for key, value, checked in form.payed_for.iter_choices() %}
- <p class="form-check"><label for="payed_for-{{key}}" class="form-check-label"><input name="payed_for" type="checkbox" {% if checked %}checked{% endif %} class="form-check-input" value="{{key}}"/><span>{{value}}</span></label></p>
+ <p class="form-check"><label for="payed_for-{{key}}" class="form-check-label"><input name="payed_for" type="checkbox" {% if checked %}checked{% endif %} class="form-check-input" value="{{key}}" id="payed_for-{{key}}"/><span>{{value}}</span></label></p>
{% endfor %}
</ul>
</div>