ReadOnlyInput widget now shows text instead of a greyed-out input box.
Patch by: Haoyu Bai
Reviewed by: Lennard de Rijk
--- a/app/soc/content/css/soc-090120.css Sun Feb 01 17:14:42 2009 +0000
+++ b/app/soc/content/css/soc-090120.css Sun Feb 01 17:21:46 2009 +0000
@@ -474,4 +474,8 @@
color: gray;
}
-
+.plaintext {
+background:transparent none repeat scroll 0 0;
+border:0 none;
+color:black;
+}
--- a/app/soc/views/helper/widgets.py Sun Feb 01 17:14:42 2009 +0000
+++ b/app/soc/views/helper/widgets.py Sun Feb 01 17:21:46 2009 +0000
@@ -41,6 +41,7 @@
"""Render ReadOnlyInput widget as HTML.
"""
attrs['readonly'] = 'readonly'
+ attrs['class'] = 'plaintext'
return super(ReadOnlyInput, self).render(name, value, attrs)