From f9477be9e946ec634898f50e819d363737f304fc Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 16 Sep 2011 12:29:13 -0500 Subject: Updated DNS zone details page. The DNS zone details page has been modified to use radio buttons for active zone and dynamic update fields, and text area for BIND update policy field. Ticket #1781, #1785 --- install/ui/dns.js | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/install/ui/dns.js b/install/ui/dns.js index cf8f6861..f823523a 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -46,7 +46,14 @@ IPA.entity_factories.dnszone = function() { name: 'identity', fields: [ 'idnsname', - 'idnszoneactive', + { + factory: IPA.radio_widget, + name: 'idnszoneactive', + options: [ + { value: 'TRUE', label: IPA.get_message('true') }, + { value: 'FALSE', label: IPA.get_message('false') } + ] + }, 'idnssoamname', 'idnssoarname', 'idnssoaserial', @@ -56,8 +63,18 @@ IPA.entity_factories.dnszone = function() { 'idnssoaminimum', 'dnsttl', 'dnsclass', - 'idnsallowdynupdate', - 'idnsupdatepolicy' + { + factory: IPA.radio_widget, + name: 'idnsallowdynupdate', + options: [ + { value: 'TRUE', label: IPA.get_message('true') }, + { value: 'FALSE', label: IPA.get_message('false') } + ] + }, + { + factory: IPA.textarea_widget, + name: 'idnsupdatepolicy' + } ] }] }). -- cgit