allow to set template_type form api