How can I create a form with a template