1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Changed 'for' value of checkboxes labels when adding a bill. This is now possible to check the correct box when you click on the label.

This commit is contained in:
Frédéric Sureau 2011-08-10 10:28:41 +02:00
parent d820a35c73
commit 7ee2e74969

View file

@ -14,7 +14,7 @@ def select_multi_checkbox(field, ul_class='', **kwargs):
if checked:
options['checked'] = 'checked'
html.append(u'<li><input %s /> ' % html_params(**options))
html.append(u'<label for="%s">%s</label></li>' % (field_id, label))
html.append(u'<label for="%s">%s</label></li>' % (choice_id, label))
html.append(u'</ul>')
return u''.join(html)