diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-04-04 10:49:16 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-04-10 15:44:05 +0200 |
commit | db24a831d415856e678c9153452cddaca3b311ca (patch) | |
tree | 1ba4a439d98c41edea4bd993436c428a7aa80f1e /install/ui/dns.js | |
parent | dedc7889dc0e8987cc7cc6f70a67ae571c80a10b (diff) | |
download | freeipa.git-db24a831d415856e678c9153452cddaca3b311ca.tar.gz freeipa.git-db24a831d415856e678c9153452cddaca3b311ca.tar.xz freeipa.git-db24a831d415856e678c9153452cddaca3b311ca.zip |
DNS forward policy: checkboxes changed to radio buttons
DNS forward policy fields were using mutually exclusive checkboxes. Such behavior is unusual for users.
Checkboxes were changed to radios.
https://fedorahosted.org/freeipa/ticket/2599
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r-- | install/ui/dns.js | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js index 6a684b9e..0d7f03f2 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', |