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

--
Endi S. Dewata
From ca019ce4c78195e8d504f474155743f325283d82 Mon Sep 17 00:00:00 2001
From: Endi S. Dewata <edew...@redhat.com>
Date: Fri, 16 Sep 2011 12:29:13 -0500
Subject: [PATCH] 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 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/install/ui/dns.js b/install/ui/dns.js
index da00a0495172f5195f30217552939b64ca7ab490..846da6c8614e5057c0819a26880d55971110c3c9 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'
+                    }
                 ]
             }]
         }).
-- 
1.7.5.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to