mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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
This commit is contained in:
committed by
Petr Vobornik
parent
1b1aad2b02
commit
2a00393712
@@ -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'
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user