Highlight inactive product flags as 'warning' in grid
This commit is contained in:
parent
7cad813480
commit
c30e5b232e
|
@ -158,6 +158,10 @@ class ProductFlagView(CoreOfficeMasterView):
|
||||||
g.set_link('bit_number')
|
g.set_link('bit_number')
|
||||||
g.set_link('description')
|
g.set_link('description')
|
||||||
|
|
||||||
|
def grid_extra_class(self, flag, i):
|
||||||
|
if not flag.active:
|
||||||
|
return 'warning'
|
||||||
|
|
||||||
|
|
||||||
def includeme(config):
|
def includeme(config):
|
||||||
ProductView.defaults(config)
|
ProductView.defaults(config)
|
||||||
|
|
Loading…
Reference in a new issue