﻿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
12306	Checkbox (label, field) ordering	EoghanM	nobody	"It is currently very difficult to reorder the default layout of fields: 
{{{
<label for=""x"" ...>My Label:</label> <input id=""x"".../>
}}}

For checkboxes, this should be either: 
{{{
<input id=""x"".../> <label for=""x""...>My Label</label>
}}}
 or 
{{{
<label><input.../> My Label</label>
}}}

At the moment, in a template there's no way of knowing if a field is a !BooleanField (in order to special case the html), and I don't know how I'd edit widgets etc. to override the current layout.

This has been touched on as a sore point elsewhere:

http://www.mail-archive.com/django-developers@googlegroups.com/msg21887.html

http://stackoverflow.com/questions/572263/

----

Where would be the best place to apply a patch for this?  

 - At the form level: as a new argument to forms/forms.py:_html_output, called 'checkbox_row' which for e.g. table rows would look like:
{{{
u'<tr><td colspan=""2"">%(field)s%(label)s%(help_text)s%(errors)s</td></tr>'
}}}
 - At the field level: as a new boolean function 'is_checkbox'?
 - Both of the above?"	New feature	closed	Forms	1.1	Normal	wontfix	label checkbox BooleanField		Design decision needed	0	0	0	0	0	0
