Newer
Older
<div class="dataTable" data-table-type="dataTable" data-report="{{ properties.uniqueId }}" data-params="{{ javascriptVariablesToSet|json_encode }}">
{% if reportDocumentation is not empty %}<p>{{ reportDocumentation|raw }}</p>{% endif %}
{% if properties.metadata.archived_date is defined %}<span class='helpDate'>{{ properties.metadata.archived_date }}</span>{% endif %}
</div>
{% set class %}
{% if javascriptVariablesToSet.idSubtable is defined and javascriptVariablesToSet.idSubtable != 0 %}sub {% endif %}{% if javascriptVariablesToSet.viewDataTable=='tableAllColumns' %}dataTableAllColumnsWrapper{% elseif javascriptVariablesToSet.viewDataTable=='tableGoals' %}dataTableAllColumnsWrapper {% else %}dataTableWrapper{% endif %}
{% endset %}
<div class="{{ class }}">
{% if arrayDataTable.result is defined and arrayDataTable.result == 'error' %}
{{ arrayDataTable.message }}
{% else %}
{% if arrayDataTable|length == 0 %}
{% if showReportDataWasPurgedMessage is defined and showReportDataWasPurgedMessage %}
<div class="pk-emptyDataTable">{{ 'CoreHome_DataForThisReportHasBeenPurged'|translate(deleteReportsOlderThan) }}</div>
{% else %}
<div class="pk-emptyDataTable">{{ 'CoreHome_ThereIsNoDataForThisReport'|translate }}</div>
{% endif %}
{% else %}
<a name="{{ properties.uniqueId }}"></a>
<table cellspacing="0" class="dataTable">
<tbody>
{% for row in arrayDataTable %}
<tr {% if row.idsubdatatable and javascriptVariablesToSet.controllerActionCalledWhenRequestSubTable is not null %}class="subDataTable"
id="{{ row.idsubdatatable }}"{% endif %}{% if row.issummaryrow is defined and row.issummaryrow and properties.highlight_summary_row %} class="highlight"{% endif %}>
{% for column in dataTableColumns %}
<td>
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if properties.show_footer %}
{% include "@CoreHome/_dataTableFooter.twig" %}