summaryrefslogtreecommitdiffstats
path: root/install/ui/dns.js
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-02-15 15:00:16 +0100
committerPetr Vobornik <pvoborni@redhat.com>2012-02-29 12:59:13 +0100
commit25bda1e860a55faa7975cf37b69a74f2c138d309 (patch)
tree992cd60b9f51a61f24039a73ce76869a2ad12cbf /install/ui/dns.js
parent43bbbf749d41a26a71c84e53b2c5f0f5dfdb4524 (diff)
downloadfreeipa.git-25bda1e860a55faa7975cf37b69a74f2c138d309.tar.gz
freeipa.git-25bda1e860a55faa7975cf37b69a74f2c138d309.tar.xz
freeipa.git-25bda1e860a55faa7975cf37b69a74f2c138d309.zip
New UI for DNS global configuration
UI for DNS global configuration was implemented. https://fedorahosted.org/freeipa/ticket/2350
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r--install/ui/dns.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js
index 13fba5b1..c849eeca 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -28,6 +28,35 @@
IPA.dns = {};
+IPA.dns.config_entity = function(spec) {
+
+ var that = IPA.entity(spec);
+
+ that.init = function() {
+ that.entity_init();
+
+ that.builder.details_facet({
+ title: IPA.metadata.objects.config.label,
+ sections: [
+ {
+ name: 'options',
+ label: IPA.messages.objects.dnsconfig.options,
+ fields: [
+ {
+ type: 'multivalued',
+ name: 'idnsforwarders',
+ validators: [IPA.ip_address_validator()]
+ }
+ ]
+ }
+ ],
+ needs_update: true
+ });
+ };
+
+ return that;
+};
+
IPA.dns.zone_entity = function(spec) {
var that = IPA.entity(spec);
@@ -2242,5 +2271,6 @@ IPA.network_validator = function(spec) {
return that;
};
+IPA.register('dnsconfig', IPA.dns.config_entity);
IPA.register('dnszone', IPA.dns.zone_entity);
IPA.register('dnsrecord', IPA.dns.record_entity);