diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-03-07 09:28:54 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-03-20 17:32:16 +0100 |
commit | 1b0ede0776cf292797ef765fcf04a0edc7f1fec2 (patch) | |
tree | 7e190b1e7475b3446916d0d79a69a34e8fbec1ea /install/ui | |
parent | 9b562f7377e2efe26742740108a398f4ebb3df64 (diff) | |
download | freeipa-1b0ede0776cf292797ef765fcf04a0edc7f1fec2.tar.gz freeipa-1b0ede0776cf292797ef765fcf04a0edc7f1fec2.tar.xz freeipa-1b0ede0776cf292797ef765fcf04a0edc7f1fec2.zip |
Add support of new options in dnsconfig
dnsconfig was extended of new attributes, so reflecting it in UI.
New attributes:
* idnsForwardPolicy
* idnsAllowSyncPTR
* idnsZoneRefresh
https://fedorahosted.org/freeipa/ticket/2489
Diffstat (limited to 'install/ui')
-rw-r--r-- | install/ui/dns.js | 13 | ||||
-rw-r--r-- | install/ui/test/data/dnsconfig_mod.json | 9 | ||||
-rw-r--r-- | install/ui/test/data/dnsconfig_show.json | 9 |
3 files changed, 30 insertions, 1 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js index 512d2cc23..546835860 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -43,10 +43,21 @@ IPA.dns.config_entity = function(spec) { label: IPA.messages.objects.dnsconfig.options, fields: [ { + type: 'checkbox', + name: 'idnsallowsyncptr' + }, + { type: 'multivalued', name: 'idnsforwarders', validators: [IPA.ip_address_validator()] - } + }, + { + type: 'checkboxes', + name: 'idnsforwardpolicy', + mutex: true, + options: IPA.create_options(['only', 'first']) + }, + 'idnszonerefresh' ] } ], diff --git a/install/ui/test/data/dnsconfig_mod.json b/install/ui/test/data/dnsconfig_mod.json index e82e0735e..d6e1b8c2d 100644 --- a/install/ui/test/data/dnsconfig_mod.json +++ b/install/ui/test/data/dnsconfig_mod.json @@ -17,9 +17,18 @@ "cn": [ "dns" ], + "idnsallowsyncptr": [ + "FALSE" + ], "idnsforwarders": [ "2001:beef::1" ], + "idnsforwardpolicy": [ + "first" + ], + "idnszonerefresh": [ + "20" + ], "objectclass": [ "idnsConfigObject", "nsContainer", diff --git a/install/ui/test/data/dnsconfig_show.json b/install/ui/test/data/dnsconfig_show.json index e663abcc8..4ee15cd2f 100644 --- a/install/ui/test/data/dnsconfig_show.json +++ b/install/ui/test/data/dnsconfig_show.json @@ -18,9 +18,18 @@ "dns" ], "dn": "cn=dns,dc=dev,dc=example,dc=com", + "idnsallowsyncptr": [ + "FALSE" + ], "idnsforwarders": [ "2001:beef::1" ], + "idnsforwardpolicy": [ + "first" + ], + "idnszonerefresh": [ + "20" + ], "objectclass": [ "idnsConfigObject", "nsContainer", |