provide some helper functions to create forms easily from a domain model in a template