From 186d5639618308cf2994e7d5506271533e965e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 26 Oct 2016 12:00:01 +0200 Subject: [PATCH] forms: add to radiobuttons/checkboxes widgets (#13754) --- wcs/qommon/form.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/wcs/qommon/form.py b/wcs/qommon/form.py index 43a22e5..f197844 100644 --- a/wcs/qommon/form.py +++ b/wcs/qommon/form.py @@ -216,23 +216,26 @@ class RadiobuttonsWidget(quixote.form.RadiobuttonsWidget): options = self.options_with_attributes include_disabled = True - tags = [] - for option in options: + r = TemplateIO(html=True) + for i, option in enumerate(options): object, description, key = option[:3] - label_tag = htmltext('') r += htmltext('') r += htmltext('') -- 2.10.1