I don't know of anything that does exactly what you want, but I like the idea. I'm thinking that what you've got, plus Dynamic HTML::Template Database Template gets you most of the way there.
Comment on Re: Automatically generating html form fields from a DBI handle