How can I use a template to create a form?