90 lines
2.6 KiB
XML
90 lines
2.6 KiB
XML
<html i18n:domain="loops">
|
|
|
|
|
|
<div metal:define-macro="main"
|
|
tal:define="item nocall:item/virtualTarget;
|
|
report view/reportInstance">
|
|
<div tal:attributes="class string:content-$level;">
|
|
<metal:block use-macro="view/concept_macros/concepttitle" />
|
|
</div>
|
|
<div>
|
|
<a tal:attributes="href view/reportUrl">Back to the report definition</a>
|
|
</div>
|
|
<div metal:use-macro="view/resultsRenderer" />
|
|
</div>
|
|
|
|
|
|
<div metal:define-macro="results">
|
|
<table class="report"
|
|
tal:define="results view/results">
|
|
<tr>
|
|
<th tal:repeat="col results/displayedColumns"
|
|
tal:content="col/title"
|
|
i18n:translate="" />
|
|
</tr>
|
|
<tr tal:repeat="row results">
|
|
<tal:column repeat="col results/displayedColumns">
|
|
<metal:column use-macro="python:view.getColumnRenderer(col.renderer)" />
|
|
</tal:column>
|
|
</tr>
|
|
<tr tal:define="row nocall:results/totals"
|
|
tal:condition="nocall:row">
|
|
<tal:column repeat="col results/displayedColumns">
|
|
<metal:column use-macro="python:view.getColumnRenderer(col.renderer)" />
|
|
</tal:column>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<metal:standard define-macro="standard">
|
|
<td tal:content="structure python:col.getDisplayValue(row)" />
|
|
</metal:standard>
|
|
|
|
|
|
<metal:right define-macro="center">
|
|
<td style="text-align: center"
|
|
tal:content="python:col.getDisplayValue(row)" />
|
|
</metal:right>
|
|
|
|
|
|
<metal:right define-macro="right">
|
|
<td style="text-align: right"
|
|
tal:content="python:col.getDisplayValue(row)" />
|
|
</metal:right>
|
|
|
|
|
|
<metal:target define-macro="target">
|
|
<td tal:define="value python:col.getDisplayValue(row)">
|
|
<a tal:omit-tag="python:not getattr(item, 'showLinks', True) or not value['url']"
|
|
tal:attributes="href value/url"
|
|
tal:content="value/title" /></td>
|
|
</metal:target>
|
|
|
|
|
|
<div metal:define-macro="subreport">
|
|
<td>
|
|
<table class="subreport"
|
|
tal:define="results python:col.getValue(row)">
|
|
<tr>
|
|
<th tal:repeat="col results/displayedColumns"
|
|
tal:content="col/title"
|
|
i18n:translate="" />
|
|
</tr>
|
|
<tr tal:repeat="row results">
|
|
<tal:column repeat="col results/displayedColumns">
|
|
<metal:column use-macro="python:view.getColumnRenderer(col)" />
|
|
</tal:column>
|
|
</tr>
|
|
<tr tal:define="row nocall:results/totals"
|
|
tal:condition="nocall:row">
|
|
<tal:column repeat="col results/displayedColumns">
|
|
<metal:column use-macro="python:view.getColumnRenderer(col)" />
|
|
</tal:column>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</div>
|
|
|
|
|
|
</html>
|