summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Demonte <nicolas@affinitic.be>2019-04-09 16:34:47 (GMT)
committerNicolas Demonte <nicolas@affinitic.be>2019-05-24 11:31:10 (GMT)
commit9b4744232556f37477c82d9df24e2f844d2e6de5 (patch)
tree656d6b559d82eb232b26627fe000c26fc5cb512f
parent7b6b2ea503b2c361ce979dbbbc11dcd8f1bb4c59 (diff)
downloadcollective.dms.basecontent-9b4744232556f37477c82d9df24e2f844d2e6de5.zip
collective.dms.basecontent-9b4744232556f37477c82d9df24e2f844d2e6de5.tar.gz
collective.dms.basecontent-9b4744232556f37477c82d9df24e2f844d2e6de5.tar.bz2
Add index markers to rows for document validation #22001
-rw-r--r--src/collective/dms/basecontent/browser/table.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/collective/dms/basecontent/browser/table.py b/src/collective/dms/basecontent/browser/table.py
index 52f6d1b..dc15de9 100644
--- a/src/collective/dms/basecontent/browser/table.py
+++ b/src/collective/dms/basecontent/browser/table.py
@@ -93,6 +93,14 @@ class Table(z3c.table.table.Table):
cells = [self.renderCell(item, col, colspan)
for item, col, colspan in row]
+ for index in (
+ 'can_last_version_validate',
+ 'has_last_version_accept',
+ 'has_last_version_refuse',
+ ):
+ if getattr(item, index, False):
+ cssClass += ' row-state-%s' % index
+
state_column = [x for x in row if isinstance(x[1], StateColumn)]
if state_column:
state_column = state_column[0]