Skip to content

Instantly share code, notes, and snippets.

@randm-ch

randm-ch/Show.html Secret

Last active Aug 29, 2015
Embed
What would you like to do?
{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