mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
70dd48eecb
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@90020 467b73ca-7a2a-4603-9d3b-597d59a354a9
65 lines
2.3 KiB
Scheme
65 lines
2.3 KiB
Scheme
<div id="$id" class="$CSSClasses" href="$CurrentLink">
|
|
<% include TableListField_PageControls %>
|
|
<table class="data">
|
|
<thead>
|
|
<tr>
|
|
<% if Markable %><th width="18"> </th><% end_if %>
|
|
<% control Headings %>
|
|
<th class="$Name">$Title</th>
|
|
<% end_control %>
|
|
<% if Can(show) %><th width="18"> </th><% end_if %>
|
|
<% if Can(edit) %><th width="18"> </th><% end_if %>
|
|
<% if Can(delete) %><th width="18"> </th><% end_if %>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<% if HasSummary %>
|
|
<tr class="summary">
|
|
<% if Markable %><th width="18"> </th><% end_if %>
|
|
<td><i>$SummaryTitle</i></td>
|
|
<% control SummaryFields %>
|
|
<td<% if Function %> class="$Function"<% end_if %>> </td>
|
|
<% end_control %>
|
|
<% if Can(show) %><td width="18"> </td><% end_if %>
|
|
<% if Can(edit) %><td width="18"> </td><% end_if %>
|
|
<% if Can(delete) %><td width="18"> </td><% end_if %>
|
|
</tr>
|
|
<% end_if %>
|
|
<% if Can(add) %>
|
|
<tr>
|
|
<% if Markable %><td width="18"> </td><% end_if %>
|
|
<td colspan="$ItemCount">
|
|
<input type="hidden" id="{$id}_PopupHeight" value="$PopupHeight" disabled="disabled">
|
|
<input type="hidden" id="{$id}_PopupWidth" value="$PopupWidth" disabled="disabled">
|
|
<a class="popuplink addlink" href="$AddLink" alt="<% _t('ADD', 'Add') %>"><img src="cms/images/add.gif" alt="<% _t('ADD', 'Add') %>" /><% _t('ADD', 'Add') %> $Title</a>
|
|
</td>
|
|
<% if Can(show) %><td width="18"> </td><% end_if %>
|
|
<% if Can(edit) %><td width="18"> </td><% end_if %>
|
|
<% if Can(delete) %><td width="18"> </td><% end_if %>
|
|
</tr>
|
|
<% end_if %>
|
|
</tfoot>
|
|
<tbody>
|
|
<% if Items %>
|
|
<% control Items %>
|
|
<% include TableListField_Item %>
|
|
<% end_control %>
|
|
<% else %>
|
|
<tr class="notfound">
|
|
<% if Markable %><th width="18"> </th><% end_if %>
|
|
<td colspan="$Headings.Count"><i><% _t('NOTFOUND', 'No items found') %></i></td>
|
|
<% if Can(show) %><td width="18"> </td><% end_if %>
|
|
<% if Can(edit) %><td width="18"> </td><% end_if %>
|
|
<% if Can(delete) %><td width="18"> </td><% end_if %>
|
|
</tr>
|
|
<% end_if %>
|
|
</tbody>
|
|
</table>
|
|
$ExtraData
|
|
<div class="utility">
|
|
<% if Can(export) %>
|
|
<a href="$ExportLink" target="_blank"><% _t('CSVEXPORT', 'Export to CSV' ) %></a>
|
|
<% end_if %>
|
|
</div>
|
|
</div>
|