Add highlight for non-active users in grid
This commit is contained in:
parent
f1c2fd399e
commit
065ad9e422
|
@ -135,6 +135,10 @@ class UserView(PrincipalMasterView):
|
||||||
g.set_link('last_name')
|
g.set_link('last_name')
|
||||||
g.set_link('display_name')
|
g.set_link('display_name')
|
||||||
|
|
||||||
|
def grid_extra_class(self, user, i):
|
||||||
|
if not user.active:
|
||||||
|
return 'warning'
|
||||||
|
|
||||||
def editable_instance(self, user):
|
def editable_instance(self, user):
|
||||||
"""
|
"""
|
||||||
If the given user is "protected" then we only allow edit if current
|
If the given user is "protected" then we only allow edit if current
|
||||||
|
|
Loading…
Reference in a new issue