ReadOnlyInput widget now shows text instead of a greyed-out input box.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 01 Feb 2009 17:21:46 +0000
changeset 1158 eefda5105ecd
parent 1157 76e2ed09661c
child 1159 3fefc88b0965
ReadOnlyInput widget now shows text instead of a greyed-out input box. Patch by: Haoyu Bai Reviewed by: Lennard de Rijk
app/soc/content/css/soc-090120.css
app/soc/views/helper/widgets.py
--- 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)