diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js index 09336c3cf..bf84ba3ac 100644 --- a/install/ui/src/freeipa/user.js +++ b/install/ui/src/freeipa/user.js @@ -833,13 +833,13 @@ IPA.user.deleter_dialog = function(spec) { }); that.option_radio = IPA.radio_widget({ - name: 'deletemode', - label: 'Delete mode', + name: 'preserve', + label: '@i18n:objects.user.delete_mode', options: [ - { label: 'default', value: '' }, - { label: 'delete permanently', value: 'permanently' }, - { label: 'preserve', value: 'preserve' } - ] + { label: '@i18n:objects.user.mode_delete', value: 'false' }, + { label: '@i18n:objects.user.mode_preserve', value: 'true' } + ], + default_value: 'false' }); var html = that.option_layout.create([that.option_radio]); @@ -849,13 +849,11 @@ IPA.user.deleter_dialog = function(spec) { that.create_command = function() { var batch = that.search_deleter_dialog_create_command(); - var option = that.option_radio.get_value()[0]; + var preserve = that.option_radio.get_value()[0]; - if (option) { - for (var i=0; iThe change will take effect immediately.", "status_link": "Click to ${action}", diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index ff096616d..270a228b2 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -724,11 +724,14 @@ class i18n_messages(Command): "account_status": _("Account Status"), "activeuser_label": _("Active users"), "contact": _("Contact Settings"), + "delete_mode": _("Delete mode"), "employee": _("Employee Information"), "error_changing_status": _("Error changing account status"), "krbpasswordexpiration": _("Password expiration"), "mailing": _("Mailing Address"), "misc": _("Misc. Information"), + "mode_delete": _("delete"), + "mode_preserve": _("preserve"), "noprivate": _("No private group"), "status_confirmation": _("Are you sure you want to ${action} the user?
The change will take effect immediately."), "status_link": _("Click to ${action}"),