From bc8b27a783e50039f25a4faabcdd0526ca412856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 6 Jun 2016 21:26:21 +0200 Subject: [PATCH 3/5] workflows: add markup to give table cell widgets their classes (#11071) --- wcs/qommon/form.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wcs/qommon/form.py b/wcs/qommon/form.py index 70ddb7d..1048afb 100644 --- a/wcs/qommon/form.py +++ b/wcs/qommon/form.py @@ -430,9 +430,12 @@ class CompositeWidget(quixote.form.CompositeWidget): r = TemplateIO(html=True) r += htmltext('\n') for widget in self.get_widgets(): - r += htmltext('') + classnames = '%s widget' % widget.__class__.__name__ + if hasattr(self, 'extra_css_class') and widget.extra_css_class: + classnames += ' ' + widget.extra_css_class + r += htmltext('
' % classnames) r += widget.render_content() - r += htmltext('') + r += htmltext('
') r += htmltext('\n') return r.getvalue() -- 2.8.1