Commit c4858db1 authored by Romain Courteaud's avatar Romain Courteaud

Render fields css classes and extras even if the field is not editable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45322 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e473c85e
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
############################################################################## ##############################################################################
from Products.Formulator import Widget, Validator from Products.Formulator import Widget, Validator
from Products.Formulator.Widget import render_element
from Products.Formulator.Field import ZMIField from Products.Formulator.Field import ZMIField
from Products.Formulator.DummyField import fields from Products.Formulator.DummyField import fields
from Products.ERP5Type.Utils import convertToUpperCase from Products.ERP5Type.Utils import convertToUpperCase
...@@ -129,7 +130,10 @@ class EditorWidget(Widget.TextAreaWidget): ...@@ -129,7 +130,10 @@ class EditorWidget(Widget.TextAreaWidget):
""" """
if value is None: if value is None:
value = '' value = ''
return value return render_element("div",
css_class=field.get_value('css_class'),
contents=value,
extra=field.get_value('extra'))
EditorWidgetInstance = EditorWidget() EditorWidgetInstance = EditorWidget()
......
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