silverstripe-framework/templates/SilverStripe/Forms/GridField/GridFieldPaginator_Row.ss

24 lines
971 B
Scheme
Raw Permalink Normal View History

<tr>
2016-07-01 03:37:29 +02:00
<td class="grid-field__paginator bottom-all" colspan="$Colspan">
<% if $OnlyOnePage %>
<% else %>
2016-07-01 03:37:29 +02:00
<div class="grid-field__paginator__controls datagrid-pagination">
$FirstPage $PreviousPage
2012-08-10 00:30:32 +02:00
<span class="pagination-page-number">
2017-05-08 13:34:39 +02:00
<%t SilverStripe\\Forms\\GridField\\GridFieldPaginator.Page 'Page' %>
<input class="text no-change-track" title="Current page" value="$CurrentPageNum" data-skip-autofocus="true" />
2017-05-08 13:34:39 +02:00
<%t SilverStripe\\Forms\\GridField\\GridFieldPaginator.OF 'of' is 'Example: View 1 of 2' %>
2012-08-10 00:30:32 +02:00
$NumPages
</span>
$NextPage $LastPage
</div>
<% end_if %>
2016-07-01 03:37:29 +02:00
<span class="grid-field__paginator_numbers pagination-records-number">
2017-05-08 13:34:39 +02:00
<%t SilverStripe\\Forms\\GridField\\GridFieldPaginator.View 'View' is 'Verb. Example: View 1 of 2' %>
{$FirstShownRecord}&ndash;{$LastShownRecord}
2017-05-08 13:34:39 +02:00
<%t SilverStripe\\Forms\\GridField\\GridFieldPaginator.OF 'of' is 'Example: View 1 of 2' %>
2012-08-10 00:30:32 +02:00
$NumRecords
</span>
</td>
</tr>