From d866399bee230941c080d78f2fcb03686b653786 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Fri, 22 Oct 2010 09:41:34 -0400 Subject: dns work without the details change including changes from Reviewboard https://fedorahosted.org/reviewboard/r/96/ Fixed pages that use unspecified (krb ticket policy, config) Facet name comes out of the facet, not hard coded. --- install/static/policy.js | 380 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 380 insertions(+) (limited to 'install/static/policy.js') diff --git a/install/static/policy.js b/install/static/policy.js index 9d55e1cf..4d30c573 100644 --- a/install/static/policy.js +++ b/install/static/policy.js @@ -53,6 +53,7 @@ ipa_entity_set_search_definition('dns', [ ['quick_links', 'Quick Links', ipa_entity_quick_links] ]); + ipa_entity_set_add_definition('dns', [ 'dialog-add-dns', 'Add New Zone', [ ['idnsname', 'Name', null], @@ -82,6 +83,385 @@ ipa_entity_set_association_definition('dns', { }); +ipa_entity_set_facet_definition('dns', [ + ipa_facet({name:'records'})] +); + +function create_records_facet(){ + + var that = {}; + + var record_types =[ 'a', 'aaaa', 'dname', 'cname', 'mx', 'ns', 'ptr', + 'srv', 'txt', 'a6', 'afsdb', 'cert', 'ds', 'hinfo', + 'key', 'kx', 'loc', 'md', 'minfo', 'naptr', 'nsec', + 'nxt', 'rrsig', 'sshfp']; + + function create_type_select(id,add_none) { + var type_select = $(''))); + dl.append('
Type
'); + dl.append( $('
').append(create_type_select('dns-record-type'))); + dl.append('
Data
'); + dl.append($('
').append($('