mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
22bf4f8c33
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92551 467b73ca-7a2a-4603-9d3b-597d59a354a9
82 lines
2.2 KiB
Scheme
Executable File
82 lines
2.2 KiB
Scheme
Executable File
<div id="$id" class="$CSSClasses $extraClass field">
|
|
<% if Print %><% else %><% include TableListField_PageControls %><% end_if %>
|
|
<table class="data">
|
|
<thead>
|
|
<tr>
|
|
<% if Markable %><th width="16"><% if MarkableTitle %>$MarkableTitle<% else %> <% end_if %></th><% end_if %>
|
|
<% if Print %>
|
|
<% control Headings %>
|
|
<th class="$Name">
|
|
$Title
|
|
</th>
|
|
<% end_control %>
|
|
<% else %>
|
|
<% control Headings %>
|
|
<th class="$Name">
|
|
<% if IsSortable %>
|
|
<span class="sortTitle">
|
|
<a href="$SortLink">$Title</a>
|
|
</span>
|
|
<span class="sortLink <% if SortBy %><% else %>sortLinkHidden<% end_if %>">
|
|
<a href="$SortLink"">
|
|
<% if SortDirection = desc %>
|
|
<img src="cms/images/bullet_arrow_down.png" alt="<% _t('SORTDESC', 'Sort in descending order') %>" />
|
|
<% else %>
|
|
<img src="cms/images/bullet_arrow_up.png" alt="<% _t('SORTASC', 'Sort in ascending order') %>" />
|
|
<% end_if %>
|
|
</a>
|
|
|
|
</span>
|
|
<% else %>
|
|
$Title
|
|
<% end_if %>
|
|
</th>
|
|
<% end_control %>
|
|
<% end_if %>
|
|
<% if Can(delete) %><th width="18"> </th><% end_if %>
|
|
</tr>
|
|
</thead>
|
|
|
|
<% if HasSummary %>
|
|
<tfoot>
|
|
<tr class="summary">
|
|
<% include TableListField_Summary %>
|
|
</tr>
|
|
</tfoot>
|
|
<% end_if %>
|
|
|
|
<tbody>
|
|
<% if HasGroupedItems %>
|
|
<% control GroupedItems %>
|
|
<% control Items %>
|
|
<% include TableListField_Item %>
|
|
<% end_control %>
|
|
<tr class="summary partialSummary">
|
|
<% include TableListField_Summary %>
|
|
</tr>
|
|
<% end_control %>
|
|
<% else %>
|
|
<% 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('NOITEMSFOUND','No items found') %></i></td>
|
|
<% if Can(delete) %><td width="18"> </td><% end_if %>
|
|
</tr>
|
|
<% end_if %>
|
|
<% if Can(add) %>
|
|
$AddRecordAsTableRow
|
|
<% end_if %>
|
|
<% end_if %>
|
|
</tbody>
|
|
</table>
|
|
<div class="utility">
|
|
<% control Utility %>
|
|
<span class="item"><a href="$Link">$Title</a></span>
|
|
<% end_control %>
|
|
</div>
|
|
</div>
|