It'd be clean if we could render the modal as a template and pass in the context.