Skip to content

Instantly share code, notes, and snippets.

@randm-ch
Created February 26, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randm-ch/64c2614578096416a875 to your computer and use it in GitHub Desktop.
Save randm-ch/64c2614578096416a875 to your computer and use it in GitHub Desktop.
{namespace z=MyCompany\MyApplication\ViewHelpers}
<f:layout name="Default" />
<f:section name="Title">Reporte</f:section>
<f:section name="Subtitle"></f:section>
<f:section name="Content">
<f:if condition="{reports}">
<f:then>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Name</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<f:for each="{reports}" as="report">
<tr>
<td>
<f:link.action action="show" arguments="{report: report}">{report.name}</f:link.action>
</td>
<td class="edit">
<f:form action="delete" arguments="{report: report}">
<div class="btn-group">
<f:link.action action="show" arguments="{report: report}" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-search"></i></f:link.action>
<f:link.action action="edit" arguments="{report: report}" class="btn btn-primary btn-sm"><i class="glyphicon glyphicon-edit"></i></f:link.action>
<a href="#" class="btn btn-warning btn-sm" data-action="copy"><i class="glyphicon glyphicon-tags"></i></a>
<a href="#" class="btn btn-danger btn-sm" data-dialog="Wirklich löschen?"><i class="glyphicon glyphicon-remove"></i></a>
</div>
</f:form>
</td>
</tr>
</f:for>
</tbody>
</table>
</f:then>
<f:else>
<div class="alert alert-info">
<strong>Info:</strong> Noch keine Reporte erstellt.
</div>
</f:else>
</f:if>
<p><f:link.action action="new" class="btn btn-primary">Report erstellen</f:link.action></p>
</f:section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment