aboutsummaryrefslogtreecommitdiff
path: root/budget/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'budget/forms.py')
-rw-r--r--budget/forms.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/budget/forms.py b/budget/forms.py
index fe14288..51da01f 100644
--- a/budget/forms.py
+++ b/budget/forms.py
@@ -7,14 +7,13 @@ from datetime import datetime
def select_multi_checkbox(field, ul_class='', **kwargs):
kwargs.setdefault('type', 'checkbox')
field_id = kwargs.pop('id', field.id)
- html = [u'<ul %s>' % html_params(id=field_id, class_=ul_class)]
+ html = [u'<ul %s>' % html_params(id=field_id, class_="inputs-list")]
for value, label, checked in field.iter_choices():
choice_id = u'%s-%s' % (field_id, value)
options = dict(kwargs, name=field.name, value=value, id=choice_id)
if checked:
options['checked'] = 'checked'
- html.append(u'<li><input %s /> ' % html_params(**options))
- html.append(u'<label for="%s">%s</label></li>' % (choice_id, label))
+ html.append(u'<li><label for="%s">%s<span>%s</span></label></li>' % (choice_id, '<input %s /> ' % html_params(**options), label))
html.append(u'</ul>')
return u''.join(html)