# HG changeset patch # User Thierry Florac # Date 1505821434 -7200 # Node ID 3e6b4514cacbe87ffcfbea75c0a05395642e58d5 # Parent fd3b8d4c3168301a2b1f92c1ceb19e4f2fd0ded2 Added 'textarea' class to 'text' field widgets diff -r fd3b8d4c3168 -r 3e6b4514cacb src/pyams_content/shared/form/zmi/summary.py --- a/src/pyams_content/shared/form/zmi/summary.py Tue Sep 19 11:38:25 2017 +0200 +++ b/src/pyams_content/shared/form/zmi/summary.py Tue Sep 19 13:43:54 2017 +0200 @@ -75,6 +75,8 @@ field = IFormFieldContainer(self.context).get(widget.field.__name__) if field is not None: widget.placeholder = field.placeholder + if field.field_type == 'text': + widget.widget_css_class = 'textarea' @adapter_config(context=(IFormFieldContainerTarget, IPyAMSLayer, FormFieldContainerSummaryView), provides=IFormHelp)