Commits

Mike Orr committed 93d02c3

Suggest webhelpers.containers.distribute for multiple checkboxes, radios.

Comments (0)

Files changed (1)

webhelpers/html/tags.py

 
     * ``readonly`` - If true, the user will not be able to modify the checkbox.
 
+    To arrange multiple checkboxes in a group, see
+    webhelpers.containers.distribute().
+
     Example::
     
         >>> checkbox("hi")
         literal(u'<input name="hi" type="checkbox" value="1" />')
-    
     """
     set_input_attrs(attrs, "checkbox", name, value)
     attrs["type"] = "checkbox"
     The id of the radio button will be set to the name + ' ' + value to 
     ensure its uniqueness.  An ``id`` keyword arg overrides this.
     
+    To arrange multiple radio buttons in a group, see
+    webhelpers.containers.distribute().
     """
     set_input_attrs(attrs, "radio", name, value)
     if checked:
         The submitted form value will be "1" if the box was checked. If the
         box is unchecked, no value will be submitted. (This is a downside of
         the standard checkbox tag.)
+
+        To display multiple checkboxes in a group, see
+        webhelper.containers.distribute().
         """
         self._update_id(name, kw)
         value = kw.pop("value", "1")
         3. If no ID was passed or generated by step (1), the radio button 
            will not have an 'id' attribute.
 
+        To display multiple radio buttons in a group, see
+        webhelper.containers.distribute().
         """
         self._update_id(name, kw)
         value = self._get_value(name, kw)