summaryrefslogtreecommitdiffstats
path: root/install/ui/dns.js
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-01-18 21:54:41 -0600
committerPetr Voborník <pvoborni@redhat.com>2012-01-23 15:38:41 +0100
commitb353239e59a8eb32fb1ac66e29228dc95b74e4e6 (patch)
tree09093bfd4ae3a5954c680998000635c15165c91f /install/ui/dns.js
parentfef343ae8f501aa67d4c746d9c7103d797fd6be2 (diff)
downloadfreeipa-b353239e59a8eb32fb1ac66e29228dc95b74e4e6.tar.gz
freeipa-b353239e59a8eb32fb1ac66e29228dc95b74e4e6.tar.xz
freeipa-b353239e59a8eb32fb1ac66e29228dc95b74e4e6.zip
Fixed inconsistent status labels.
This patch modifies the status attributes in users, DNS zones, HBAC/sudo rules, HBAC test, and SELinux User Map to use the same label (i.e. Status) and values (i.e. Enabled/Disabled). The method to change the status will be modified separately. Ticket #2247
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r--install/ui/dns.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js
index 6383d922..d23eca3a 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -43,8 +43,16 @@ IPA.dns.zone_entity = function(spec) {
that.builder.facet_groups([ 'dnsrecord', 'settings' ]).
search_facet({
+ row_enabled_attribute: 'idnszoneactive',
title: IPA.metadata.objects.dnszone.label,
- columns: [ 'idnsname' ]
+ columns: [
+ 'idnsname',
+ {
+ name: 'idnszoneactive',
+ label: IPA.messages.status.label,
+ format: IPA.boolean_status_format()
+ }
+ ]
}).
details_facet({
factory: IPA.dnszone_details_facet,
@@ -55,9 +63,10 @@ IPA.dns.zone_entity = function(spec) {
{
type: 'radio',
name: 'idnszoneactive',
+ label: IPA.messages.status.label,
options: [
- { value: 'TRUE', label: IPA.get_message('true') },
- { value: 'FALSE', label: IPA.get_message('false') }
+ { value: 'TRUE', label: IPA.messages.status.enabled },
+ { value: 'FALSE', label: IPA.messages.status.disabled }
]
},
'idnssoamname',