{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> </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