passing baseurl to templates for use in forms