silverstripe-framework/templates/GridFieldPaginator.ss
Stig Lindqvist 83e90aaafe ENHANCEMENT Release of DataGridPagination
This class extends the DataGridPresenter with the behaviour and looks of a paginated Datagrid.
2011-10-28 17:34:15 +13:00

29 lines
940 B
Scheme

<% require css(sapphire/css/GridFieldPaginator.css) %>
<% if Pages %>
<div class="ss-gridfield-pagination">
<% if FirstLink %>
<button class="ss-gridfield-pagination-button" type="submit" name="page" value="$FirstLink">First</button>
<% end_if %>
<% if PreviousLink %>
<button class="ss-gridfield-pagination-button" type="submit" name="page" value="$PreviousLink">Previous page</button>
<% end_if %>
<% control Pages %>
<% if Current %>
$PageNumber
<% else %>
<button class="ss-gridfield-pagination-button" type="submit" name="page" value="$PageNumber">$PageNumber</button>
<% end_if %>
<% end_control%>
<% if NextLink %>
<button class="ss-gridfield-pagination-button" type="submit" name="page" value="$NextLink">Next Page</button>
<% end_if %>
<% if LastLink %>
<button class="ss-gridfield-pagination-button" type="submit" name="page" value="$LastLink">Last</button>
<% end_if %>
</div>
<% end_if %>