Author: eallen
Date: 2008-11-05 16:36:46 -0500 (Wed, 05 Nov 2008)
New Revision: 2749
Modified:
mgmt/trunk/cumin/python/wooly/forms.py
mgmt/trunk/cumin/python/wooly/forms.strings
Log:
Adding a HiddenInput FormInput
Modified: mgmt/trunk/cumin/python/wooly/forms.py
===================================================================
--- mgmt/trunk/cumin/python/wooly/forms.py 2008-11-05 21:35:57 UTC (rev 2748)
+++ mgmt/trunk/cumin/python/wooly/forms.py 2008-11-05 21:36:46 UTC (rev 2749)
@@ -184,6 +184,13 @@
class PasswordInput(StringInput):
pass
+class HiddenInput(ScalarInput):
+ def __init__(self, app, name):
+ super(HiddenInput, self).__init__(app, name, None)
+
+ self.param = BooleanParameter(app, "param")
+ self.add_parameter(self.param)
+
class IntegerInput(ScalarInput):
def __init__(self, app, name):
super(IntegerInput, self).__init__(app, name, None)
Modified: mgmt/trunk/cumin/python/wooly/forms.strings
===================================================================
--- mgmt/trunk/cumin/python/wooly/forms.strings 2008-11-05 21:35:57 UTC (rev 2748)
+++ mgmt/trunk/cumin/python/wooly/forms.strings 2008-11-05 21:36:46 UTC (rev 2749)
@@ -22,6 +22,9 @@
[CheckboxInput.html]
<input type="checkbox" name="{name}" value="{value}"
tabindex="{tab_index}" {checked_attr} {disabled_attr}/>
+[HiddenInput.html]
+<input type="hidden" name="{name}" value="{value}"
tabindex="{tab_index}"/>
+
[RadioInput.html]
<input type="radio" id="{id}" name="{name}"
value="{value}" tabindex="{tab_index}" {checked_attr}
{disabled_attr}/>
Show replies by date