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

@@ -1019,6 +1019,19 @@ IPA.boolean_format = function(spec) {
return that;
};
IPA.boolean_status_format = function(spec) {
spec = spec || {};
var that = IPA.boolean_format(spec);
that.true_value = spec.true_value || IPA.messages.status.enabled;
that.false_value = spec.false_value || IPA.messages.status.disabled;
that.show_false = true;
return that;
};
/*
The entity name must be set in the spec either directly or via entity.name
*/