﻿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
16304	Add HTML5 'placeholder' attribute support to form fields.	rich@…	Kushagra Sinha	"HTML5 introduces a 'placeholder' attribute to form inputs, providing a text hint which disappears when the user highlights it, which greatly improves the UX of a page.

To do this in Django currently, you have to do something like:

{{{#!python
comment = forms.CharField(max_length=200, widget=forms.TextInput({ ""placeholder"": ""Text!""}))
}}}

However, to do this with a ModelForm is much more complicated: http://bitkickers.blogspot.com/2010/09/django-html5-input-placeholders.html

I suggest that there should be an easier way to set placeholder text in form fields and model form fields:

{{{#!python
comment = forms.CharField(max_length=200, placeholder=""Text!"")
}}}

(This would also be a good starting point for other new HTML5 input elements, such as 'required' and 'email', but those should be separate tickets. The code would be very similar though.)
What do you think?"	New feature	assigned	Forms	SVN	Normal		forms, placeholder, html5	Kushagra Sinha Andy Baker	Accepted	1	0	0	1	1	1
