reporting: corresponding cssClass usage in table headers and rows; use for work report

This commit is contained in:
Helmut Merz 2026-02-06 12:46:53 +01:00
parent 5676194e56
commit e5c88c2111
2 changed files with 6 additions and 3 deletions

View file

@ -51,8 +51,8 @@
tal:define="results reportView/results"> tal:define="results reportView/results">
<tr> <tr>
<th style="white-space: nowrap" <th style="white-space: nowrap"
tal:attributes="class col/cssClass"
tal:repeat="col results/displayedColumns"> tal:repeat="col results/displayedColumns">
<span tal:attributes="class col/cssClass">
<a title="tooltip_sort_column" <a title="tooltip_sort_column"
tal:define="colName col/name" tal:define="colName col/name"
tal:omit-tag="python:not item.isSortableColumn(tableName, colName)" tal:omit-tag="python:not item.isSortableColumn(tableName, colName)"
@ -64,7 +64,6 @@
tal:condition="src" tal:condition="src"
tal:attributes="src src" /> tal:attributes="src src" />
</a> </a>
</span>
</th> </th>
</tr> </tr>
<tr tal:repeat="row results" <tr tal:repeat="row results"

View file

@ -178,7 +178,7 @@ dayTo = TrackDateField('dayTo', u'End Day',
executionSteps=['query']) executionSteps=['query'])
day = TrackDateField('day', u'Day', day = TrackDateField('day', u'Day',
description=u'The day the work was done.', description=u'The day the work was done.',
cssClass='center', cssClass='left',
executionSteps=['sort', 'output']) executionSteps=['sort', 'output'])
dayStart = TrackDateField('dayStart', u'Start Day', dayStart = TrackDateField('dayStart', u'Start Day',
description=u'The day the unit of work was started.', description=u'The day the unit of work was started.',
@ -190,15 +190,18 @@ dayEnd = TrackDateField('dayEnd', u'End Day',
executionSteps=['sort', 'output']) executionSteps=['sort', 'output'])
timeStart = TrackTimeField('start', u'Start', timeStart = TrackTimeField('start', u'Start',
description=u'The time the unit of work was started.', description=u'The time the unit of work was started.',
cssClass='noprint',
executionSteps=['sort', 'output']) executionSteps=['sort', 'output'])
timeEnd = TrackTimeField('end', u'End', timeEnd = TrackTimeField('end', u'End',
description=u'The time the unit of work was finished.', description=u'The time the unit of work was finished.',
cssClass='noprint',
executionSteps=['output']) executionSteps=['output'])
task = TargetField('taskId', u'Task', task = TargetField('taskId', u'Task',
description=u'The task to which work items belong.', description=u'The task to which work items belong.',
executionSteps=['sort', 'output']) executionSteps=['sort', 'output'])
party = PartyQueryField('userName', u'Party', party = PartyQueryField('userName', u'Party',
description=u'The party (usually a person) who did the work.', description=u'The party (usually a person) who did the work.',
cssClass='noprint',
fieldType='selection', fieldType='selection',
executionSteps=['sort', 'output', 'query']) executionSteps=['sort', 'output', 'query'])
#partyQuery = TargetField('userName', u'Party', #partyQuery = TargetField('userName', u'Party',
@ -229,6 +232,7 @@ partyState = PartyStateField('partyState', u'Party State',
executionSteps=['query', 'output']) executionSteps=['query', 'output'])
activity = ActivityField('activity', u'LA', activity = ActivityField('activity', u'LA',
description=u'The activity assigned to the work item.', description=u'The activity assigned to the work item.',
cssClass='noprint',
fieldType='selection', fieldType='selection',
executionSteps=['query', 'sort', 'output']) executionSteps=['query', 'sort', 'output'])
# process # process