-
-
Save randm-ch/d97be28271db84aa4d3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{namespace z=MyCompany\MyApplication\ViewHelpers} | |
<f:layout name="Default" /> | |
<f:section name="Title">Report</f:section> | |
<f:section name="Subtitle">{report.name}</f:section> | |
<f:section name="Content"> | |
<f:if condition="{report.results}"> | |
<f:then> | |
<table cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered"> | |
<thead> | |
<tr> | |
<f:for each="{report.propertyNames}" as="property"> | |
<th><z:translate id="{property}" /></th> | |
</f:for> | |
<f:if condition="{report.location}"> | |
<th class="no-sort"> | |
<a href="#" id="toggle-marker" data-identifier="{report -> f:format.identifier()}"> | |
<i class="glyphicon glyphicon-check"></i> | |
</a> | |
</th> | |
</f:if> | |
</tr> | |
</thead> | |
<tbody> | |
<f:for each="{report.results}" as="result"> | |
<tr> | |
<f:for each="{report.properties}" as="property"> | |
<td><z:dynamicAccess container="{result}" identifier="{property}"/></td> | |
</f:for> | |
<f:if condition="{report.location}"> | |
<td> | |
<a href="#" class="export-marker" data-index="{result.persistenceIdentifier}"><i class="glyphicon glyphicon-ok"></i></a> | |
</td> | |
</f:if> | |
</tr> | |
</f:for> | |
</tbody> | |
</table> | |
</f:then> | |
<f:else> | |
<div class="alert alert-info"> | |
<strong>Info:</strong> Dieser Report findet keine passenden Einträge. <f:link.action action="edit" arguments="{report: report}">Report bearbeiten</f:link.action> | |
</div> | |
</f:else> | |
</f:if> | |
<f:link.action action="index" class="btn btn-default">Zurück</f:link.action> | |
</f:section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment