/// class PD.Manage.Modules.RecycleBinDeleteConfirmationDialog

PD.Manage.Modules.RecycleBinDeleteConfirmationDialog = PD.Web.UI.RadioDialog.extend({

    init: function (options) {

        var message = [
           "Some of the items you are deleting may still be actively referenced by other entities in the system.<br/><br/>",
           "How you would like the system to proceed when a referenced entity is encountered during the deletion process:",
           "{{options}}",
           "<b>WARNING:</b> This operation cannot be undone."
        ];

        var customOptions = _.extend(options, {
            title: "Referenced Entity Handling",
            message: message.join(""),
            ok: options.callback,
            radios: [
                { value: "skip", label: "<b>Skip and Proceed</b><br/>Skip deletion of the entity leaving its active references intact and proceed onto to the next item to delete." },
                { value: "delete", label: "<b>Remove References, Delete and Proceed</b><br/>Remove all the active references to the entity, delete the entity and proceed onto the next item to delete." }
            ]
        })

        this._super(customOptions);

    }

});

PD.Manage.Modules.RecycleBinDeleteConfirmationDialog.show = function (options) {
    return PD.Web.UI.MessageDialog.warn(options, PD.Manage.Modules.RecycleBinDeleteConfirmationDialog);
};