From 2a00393712eb490b23604399ea8318b3b4cca118 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Thu, 5 Jan 2012 09:10:11 -0600 Subject: Added account status into user search facet. The user search facet has been modified to show the account status. The IPA.boolean_format has been converted into a class to allow behavior customization. Ticket #1996 --- install/ui/hbactest.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'install/ui/hbactest.js') diff --git a/install/ui/hbactest.js b/install/ui/hbactest.js index 26aed6e0..26e8085d 100644 --- a/install/ui/hbactest.js +++ b/install/ui/hbactest.js @@ -46,7 +46,16 @@ IPA.hbac.test_entity = function(spec) { columns: [ 'uid', 'givenname', - 'sn' + 'sn', + { + name: 'nsaccountlock', + format: IPA.boolean_format({ + true_value: IPA.messages.objects.user.active, + false_value: IPA.messages.objects.user.inactive, + invert_value: true + }), + label: IPA.messages.objects.user.account_status + } ] }). facet({ @@ -62,7 +71,7 @@ IPA.hbac.test_entity = function(spec) { { name: 'has_keytab', label: IPA.messages.objects.host.enrolled, - format: IPA.boolean_format + format: IPA.boolean_format() } ] }). @@ -91,7 +100,7 @@ IPA.hbac.test_entity = function(spec) { { name: 'has_keytab', label: IPA.messages.objects.host.enrolled, - format: IPA.boolean_format + format: IPA.boolean_format() } ] }). @@ -106,7 +115,7 @@ IPA.hbac.test_entity = function(spec) { 'cn', { name: 'ipaenabledflag', - format: IPA.boolean_format + format: IPA.boolean_format() }, 'description' ] @@ -123,11 +132,11 @@ IPA.hbac.test_entity = function(spec) { { name: 'matched', label: IPA.messages.objects.hbactest.matched, - format: IPA.boolean_format + format: IPA.boolean_format() }, { name: 'ipaenabledflag', - format: IPA.boolean_format + format: IPA.boolean_format() }, 'description' ] -- cgit