Highlight inactive product flags as 'warning' in grid

This commit is contained in:
Lance Edgar 2019-07-25 14:38:53 -05:00
parent 7cad813480
commit c30e5b232e

View file

@ -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)