From 1b0ede0776cf292797ef765fcf04a0edc7f1fec2 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 7 Mar 2012 09:28:54 +0100 Subject: 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 --- install/ui/dns.js | 13 ++++++++++++- install/ui/test/data/dnsconfig_mod.json | 9 +++++++++ install/ui/test/data/dnsconfig_show.json | 9 +++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) (limited to 'install/ui') 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 @@ -42,11 +42,22 @@ IPA.dns.config_entity = function(spec) { name: 'options', 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", -- cgit