mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Moved CollectionController_Results template into genericviews module
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64498 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
12f2457677
commit
9025c57e4b
@ -1,36 +0,0 @@
|
|||||||
<% if Results %>
|
|
||||||
<h3><% _t('RESULTS','Results') %></h3>
|
|
||||||
<ul class="records">
|
|
||||||
<% control Results %>
|
|
||||||
<li>
|
|
||||||
<% if Top.canDetailView %>
|
|
||||||
<a href="{$Top.Link}/$ID/view">$Title</a>
|
|
||||||
<% else %>
|
|
||||||
$Title
|
|
||||||
<% end_if %>
|
|
||||||
</li>
|
|
||||||
<% end_control %>
|
|
||||||
</ul>
|
|
||||||
<% else %>
|
|
||||||
<p class="message"><% _t('NORESULTSFOUND','No records found') %></p>
|
|
||||||
<% end_if %>
|
|
||||||
|
|
||||||
<% if Results.MoreThanOnePage %>
|
|
||||||
<div id="PageNumbers">
|
|
||||||
<% if Results.NotFirstPage %>
|
|
||||||
<a class="prev" href="$Results.PrevLink"><% _t('PREV','Prev') %></a>
|
|
||||||
<% end_if %>
|
|
||||||
<span>
|
|
||||||
<% control Results.Pages %>
|
|
||||||
<% if CurrentBool %>
|
|
||||||
$PageNum
|
|
||||||
<% else %>
|
|
||||||
<a href="$Link">$PageNum</a>
|
|
||||||
<% end_if %>
|
|
||||||
<% end_control %>
|
|
||||||
</span>
|
|
||||||
<% if Results.NotLastPage %>
|
|
||||||
<a class="next" href="$Results.NextLink"><% _t('NEXT','Next') %></a>
|
|
||||||
<% end_if %>
|
|
||||||
</div>
|
|
||||||
<% end_if %>
|
|
Loading…
Reference in New Issue
Block a user