Commit 1957c7dd authored by Nicolas Dumazet's avatar Nicolas Dumazet

Allow using the "extra" field in forms derived from TextWidget


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33617 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86d0c137
......@@ -337,6 +337,11 @@ class TextWidget(Widget):
for line in old_value:
value.append(escape(line))
value = '<br/>'.join(value)
extra = field.get_value('extra')
if extra not in (None, ''):
value = "<div %s>%s</div>" % (extra, value)
css_class = field.get_value('css_class')
if css_class not in ('', None):
# All strings should be escaped before rendering in HTML
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment