From 96dad1e8da249b86519b7b9e1384c196a8ef7c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 30 Aug 2018 22:32:17 +0200 Subject: [PATCH] forms: add empty span to checkbox widget, for custom CSS styles (#25978) --- wcs/qommon/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/qommon/form.py b/wcs/qommon/form.py index a8f42a5d7..b64cbaa44 100644 --- a/wcs/qommon/form.py +++ b/wcs/qommon/form.py @@ -231,7 +231,7 @@ def checkbox_render_content(self): attrs.update(self.attrs) return htmltag("input", xml_end=True, type="checkbox", name=self.name, value="yes", checked=self.value and "checked" or None, - **attrs) + **attrs) + htmltext('') # for custom style CheckboxWidget.render_content = checkbox_render_content -- 2.18.0