1. Marat Khabibullin
  2. wtforms

Commits

crast  committed 8fb79f6

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

  • Participants
  • Parent commits 2429cef
  • Branches default

Comments (0)

Files changed (1)

File docs/widgets.rst

View file
             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)
-