[rhmessaging-commits] rhmessaging commits: r2228 - mgmt/trunk/cumin/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Jul 25 15:39:58 EDT 2008


Author: eallen
Date: 2008-07-25 15:39:57 -0400 (Fri, 25 Jul 2008)
New Revision: 2228

Modified:
   mgmt/trunk/cumin/python/wooly/forms.py
   mgmt/trunk/cumin/python/wooly/forms.strings
Log:
Added <label>s to radio buttons and checkboxes

Modified: mgmt/trunk/cumin/python/wooly/forms.py
===================================================================
--- mgmt/trunk/cumin/python/wooly/forms.py	2008-07-25 19:38:33 UTC (rev 2227)
+++ mgmt/trunk/cumin/python/wooly/forms.py	2008-07-25 19:39:57 UTC (rev 2228)
@@ -159,6 +159,9 @@
         super(RadioInput, self).__init__(app, name, form)
 
         self.value = None
+        
+    def set_value(self, value):
+        self.value = value
 
     def render_value(self, session, *args):
         return self.value

Modified: mgmt/trunk/cumin/python/wooly/forms.strings
===================================================================
--- mgmt/trunk/cumin/python/wooly/forms.strings	2008-07-25 19:38:33 UTC (rev 2227)
+++ mgmt/trunk/cumin/python/wooly/forms.strings	2008-07-25 19:39:57 UTC (rev 2228)
@@ -8,7 +8,7 @@
 <input type="checkbox" name="{name}" value="{value}" tabindex="{tab_index}" {checked_attr} {disabled_attr}/>
 
 [RadioInput.html]
-<input type="radio" name="{name}" value="{value}" tabindex="{tab_index}" {checked_attr} {disabled_attr}/>
+<input type="radio" id="{id}" name="{name}" value="{value}" tabindex="{tab_index}" {checked_attr} {disabled_attr}/>
 
 [CheckboxInputSet.html]
 <ul>{items}</ul>
@@ -70,9 +70,9 @@
 
 [RadioFieldOption.html]
 <div>
-  <input type="radio" name="{name}" value="{value}"
+  <input type="radio" name="{name}" id="{id}" value="{value}"
          tabindex="{tab_index}" {checked_attr} {disabled_attr}/>
-  {title}
+  <label for="{id}">{title}</label>
 </div>
 
 [FieldForm.html]




More information about the rhmessaging-commits mailing list