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
This commit is contained in:
Endi Sukma Dewata
2012-01-18 21:54:41 -06:00
committed by Petr Voborník
parent fef343ae8f
commit b353239e59
11 changed files with 138 additions and 72 deletions

View File

@@ -41,9 +41,8 @@ IPA.sudo.rule_entity = function(spec) {
'cn',
{
name: 'ipaenabledflag',
format: IPA.boolean_format({
show_false: true
})
label: IPA.messages.status.label,
format: IPA.boolean_status_format()
},
'description'
]
@@ -206,6 +205,7 @@ IPA.sudorule_details_facet = function(spec) {
{
type: 'enable',
name: 'ipaenabledflag',
label: IPA.messages.status.label,
priority: IPA.sudo.enable_priority,
widget: 'general.ipaenabledflag'
}
@@ -228,8 +228,8 @@ IPA.sudorule_details_facet = function(spec) {
type: 'enable',
name: 'ipaenabledflag',
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 }
]
}
]