From bc6f9accd9250114b4f0c457fa5badd7f794af8e Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Fri, 1 Apr 2011 17:09:07 +0200 Subject: Need force option in DNS zone adder dialog When adding a new DNS zone in the WebUI, IPA server will verify whether the nameserver is in DNS. Sometimes it is necessary to skip the verification. This patch adds a --force option already available in CLI which can skip this the verification. https://fedorahosted.org/freeipa/ticket/1105 --- install/ui/dns.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'install/ui/dns.js') diff --git a/install/ui/dns.js b/install/ui/dns.js index 08aac113c..d89982803 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -21,7 +21,7 @@ * along with this program. If not, see . */ -/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */ +/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js, widget.js */ /* DNS */ IPA.entity_factories.dnszone = function() { @@ -30,7 +30,7 @@ IPA.entity_factories.dnszone = function() { entity('dnszone'). search_facet({ columns:['idnsname'], - add_fields: ['idnsname','idnssoamname','idnssoarname'] + add_fields: ['idnsname','idnssoamname','idnssoarname', {factory:IPA.force_dnszone_add_checkbox_widget}] }). details_facet({sections:[{ name:'identity', @@ -57,6 +57,14 @@ IPA.entity_factories.dnszone = function() { build(); }; +IPA.force_dnszone_add_checkbox_widget = function (spec){ + var param_info = IPA.get_method_param('dnszone_add', 'force'); + spec.name = 'force'; + spec.label = param_info.label; + spec.tooltip = param_info.doc; + spec.undo = false; + return IPA.checkbox_widget(spec); +}; IPA.records_facet = function (spec){ -- cgit