How can I add fields to a template?