﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4785	Widgets have nonconfigurable hardcoded HTML	Michal Ludvig <michal@…>	nobody	"Widgets CheckboxSelectMultiple and RadioFieldRenderer have hardcoded <ul><li>...</li></ul> tags which makes them hard to use in a design that expects different style of output, for instance wrapping things in <div></div> tags.

Attached patch takes these <ul> and <li> tags out of the code to a class variable that can be easily overwritten in subclasses. Creating a widget DivCheckboxSelectMultiple is then as simple as:

class DivCheckboxSelectMultiple(forms.widgets.CheckboxSelectMultiple):
        tags = { 'block' : u'<div>%s</div>', 'item' : u'<div><label>%(label)s %(input)s</label></div>' }
"		closed	Forms	dev		duplicate			Design decision needed	1	0	0	0	0	0
