{% comment %} ============================================================================== CloudPanel — reusable confirmation modal ------------------------------------------------------------------------------ Included once by baseTemplate/index.html. Driven entirely from JavaScript, so no module ever has to ship its own confirm dialog: CP.confirm({ title: 'Delete website', message: 'Delete example.com and everything under /home/example.com?', detail: 'Databases, email accounts and DNS records are removed too.', confirmText: 'Delete permanently', variant: 'danger' // danger | warning | primary }).done(function (ok) { if (ok) { ... } }); Angular callers inject the cpConfirm service instead: cpConfirm({ title: '...', message: '...' }).then(function (ok) { ... }); Declarative use on a link or button: Delete If Bootstrap's JS is unavailable the helper degrades to window.confirm(). ============================================================================== {% endcomment %}