# HG changeset patch # User Lennard de Rijk # Date 1233508906 0 # Node ID eefda5105ecd4ba5a225241bfb0f1f3e0d24dea5 # Parent 76e2ed09661cfc7403b0326f1d92ec07c3c1c865 ReadOnlyInput widget now shows text instead of a greyed-out input box. Patch by: Haoyu Bai Reviewed by: Lennard de Rijk diff -r 76e2ed09661c -r eefda5105ecd app/soc/content/css/soc-090120.css --- 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; +} diff -r 76e2ed09661c -r eefda5105ecd app/soc/views/helper/widgets.py --- 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)