add 'noprint' to view modes (tabs) and query input form, and to work item state report field
This commit is contained in:
parent
cd63d7785a
commit
80404a99f2
4 changed files with 10 additions and 9 deletions
|
|
@ -267,7 +267,7 @@
|
||||||
|
|
||||||
|
|
||||||
<metal:actions define-macro="view_modes">
|
<metal:actions define-macro="view_modes">
|
||||||
<ul class="view-modes"
|
<ul class="view-modes noprint"
|
||||||
tal:define="viewModes view/viewModes"
|
tal:define="viewModes view/viewModes"
|
||||||
tal:condition="viewModes">
|
tal:condition="viewModes">
|
||||||
<li tal:repeat="mode viewModes"
|
<li tal:repeat="mode viewModes"
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
<div metal:define-macro="header">
|
<div metal:define-macro="header">
|
||||||
<metal:block use-macro="view/concept_macros/concepttitle" />
|
<metal:block use-macro="view/concept_macros/concepttitle" />
|
||||||
<form method="get" name="report_data" class="report-meta">
|
<form method="get" name="report_data" class="report-meta noprint">
|
||||||
<input type="hidden" name="show_results" value="True" />
|
<input type="hidden" name="show_results" value="True" />
|
||||||
<tal:hidden define="params item/dynamicParams">
|
<tal:hidden define="params item/dynamicParams">
|
||||||
<input type="hidden"
|
<input type="hidden"
|
||||||
|
|
|
||||||
|
|
@ -52,18 +52,19 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th style="white-space: nowrap"
|
<th style="white-space: nowrap"
|
||||||
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)"
|
||||||
tal:attributes="href python:item.getSortUrl(tableName, colName)"
|
tal:attributes="href python:item.getSortUrl(tableName, colName)"
|
||||||
i18n:attributes="title">
|
i18n:attributes="title">
|
||||||
<span tal:content="col/title"
|
<span tal:content="col/title"
|
||||||
tal:attributes="class col/cssClass"
|
|
||||||
i18n:translate="" />
|
i18n:translate="" />
|
||||||
<img tal:define="src python:item.getSortImage(tableName, colName)"
|
<img tal:define="src python:item.getSortImage(tableName, colName)"
|
||||||
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"
|
||||||
|
|
@ -102,23 +103,23 @@
|
||||||
|
|
||||||
|
|
||||||
<metal:state define-macro="state">
|
<metal:state define-macro="state">
|
||||||
<tal:column define=" value python:col.getDisplayValue(row)">
|
<span tal:define="value python:col.getDisplayValue(row)">
|
||||||
<img tal:condition="value"
|
<img tal:condition="value"
|
||||||
tal:attributes="src string:$resourceBase${value/icon};
|
tal:attributes="src string:$resourceBase${value/icon};
|
||||||
alt value/title;
|
alt value/title;
|
||||||
title value/title" />
|
title value/title" />
|
||||||
</tal:column>
|
</span>
|
||||||
</metal:state>
|
</metal:state>
|
||||||
|
|
||||||
|
|
||||||
<metal:state define-macro="workitem_state">
|
<metal:state define-macro="workitem_state">
|
||||||
<tal:column define="value python:col.getDisplayValue(row)"
|
<span tal:define="value python:col.getDisplayValue(row)"
|
||||||
condition="value">
|
tal:condition="value">
|
||||||
<tal:action repeat="action value/actions">
|
<tal:action repeat="action value/actions">
|
||||||
<metal:action tal:condition="action"
|
<metal:action tal:condition="action"
|
||||||
use-macro="action/macro" />
|
use-macro="action/macro" />
|
||||||
</tal:action>
|
</tal:action>
|
||||||
</tal:column>
|
</span>
|
||||||
</metal:state>
|
</metal:state>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@ effort = DurationField('effort', u'Effort',
|
||||||
executionSteps=['output', 'totals'])
|
executionSteps=['output', 'totals'])
|
||||||
state = WorkItemStateField('state', u'State',
|
state = WorkItemStateField('state', u'State',
|
||||||
description=u'The state of the work.',
|
description=u'The state of the work.',
|
||||||
cssClass='center',
|
cssClass='center noprint',
|
||||||
statesDefinition='workItemStates',
|
statesDefinition='workItemStates',
|
||||||
executionSteps=['query', 'output'])
|
executionSteps=['query', 'output'])
|
||||||
partyState = PartyStateField('partyState', u'Party State',
|
partyState = PartyStateField('partyState', u'Party State',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue