﻿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
31026	Switch form rendering to template engine	Johannes Maron	David Smith	"We recently switched widgets to use the template engine and template that can be overwritten.
That is currently not the case for forms themselves. More precisely `django.forms.BaseForm.as_table` and it's siblings.
They use string modulation, that they pass on to the `_html_output`, which generates the context.

I would propose to change the behavior the following way:
Have `_html_output` produce a context and don't actually perform a render.
have each `as_XYZ` method get the context and perform a template based render.

This allows to overwrite or add a new `as_XY` method and inject something into the context or change the template.


This is also an opportunity to simplify the code. Since templates to render attributes already exist."	Cleanup/optimization	closed	Forms	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
