﻿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
2926	[patch] Custom FormField attributes	Winston Lee <lee.winston@…>	Adrian Holovaty	"FormField objects don't allow users to add their own custom attributes. Modified the abstract FormField class to also require the attribute_dict property. This property allows users to define their own attributes to render. For XHTML compliance, output is property=""value"". Therefore, if you want readonly attribute it'll have to output as readonly=""readonly"": 
{{{
  { 'readonly':'readonly' }
}}}

Usage example:
{{{
attributes = {
  'onclick':'javascript:alert(\'running\');',
  'tabindex':'1',
  'title':'This is a title!',
}

self.fields = (
  forms.TextField(field_name=""fieldName"", is_required=False, length=10, attribute_dict=attributes),
  forms.TextField(field_name=""otherField"", is_required=False, length=10)
)
}}}

Shouldn't break your existing manipulators."	enhancement	closed	Core (Other)	0.95	normal	wontfix	FormField attributes		Unreviewed	1	0	0	0	0	0
