Commits

Anonymous committed 8fb79f6

Docs fix: Create a label properly for select_multi_checkbox example. Fixes #46.

Comments (0)

Files changed (1)

             if checked:
                 options['checked'] = 'checked'
             html.append(u'<li><input %s /> ' % html_params(**options))
-            html.append(u'<label %s>%s</label></li>')
+            html.append(u'<label for="%s">%s</label></li>' % (field_id, label))
         html.append(u'</ul>')
         return u''.join(html)
-