diff --git a/install/ui/dns.js b/install/ui/dns.js index 6a684b9ea..0d7f03f20 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -52,10 +52,19 @@ IPA.dns.config_entity = function(spec) { validators: [IPA.dnsforwarder_validator()] }, { - type: 'checkboxes', + type: 'radio', name: 'idnsforwardpolicy', - mutex: true, - options: IPA.create_options(['only', 'first']) + default_value: 'first', + options: [ + { + value: 'first', + label: IPA.messages.objects.dnsconfig.forward_first + }, + { + value: 'only', + label: IPA.messages.objects.dnsconfig.forward_only + } + ] }, 'idnszonerefresh' ] @@ -170,10 +179,19 @@ IPA.dns.zone_entity = function(spec) { validators: [IPA.dnsforwarder_validator()] }, { - type: 'checkboxes', + type: 'radio', name: 'idnsforwardpolicy', - mutex: true, - options: IPA.create_options(['only', 'first']) + default_value: 'first', + options: [ + { + value: 'first', + label: IPA.messages.objects.dnsconfig.forward_first + }, + { + value: 'only', + label: IPA.messages.objects.dnsconfig.forward_only + } + ] }, { type: 'checkbox', diff --git a/install/ui/ipa.js b/install/ui/ipa.js index be8748101..eeac03053 100644 --- a/install/ui/ipa.js +++ b/install/ui/ipa.js @@ -1516,17 +1516,22 @@ IPA.limit_text = function(value, max_length) { return limited_text; }; -IPA.create_options = function(labels, values) { - - if(!values) values = labels; +IPA.create_options = function(values) { var options = []; - for (var i=0; i