Convert template to form