mirror of https://github.com/MISP/MISP
fix: [pagination] Fixed bottom pagination links on the bottom
parent
03c866fe4e
commit
ad439e0b4d
|
@ -32,6 +32,7 @@
|
||||||
if (!$skipPagination) {
|
if (!$skipPagination) {
|
||||||
$paginationData = !empty($data['paginatorOptions']) ? $data['paginatorOptions'] : array();
|
$paginationData = !empty($data['paginatorOptions']) ? $data['paginatorOptions'] : array();
|
||||||
echo $this->element('/genericElements/IndexTable/pagination', array('paginationOptions' => $paginationData));
|
echo $this->element('/genericElements/IndexTable/pagination', array('paginationOptions' => $paginationData));
|
||||||
|
echo $this->element('/genericElements/IndexTable/pagination_links');
|
||||||
}
|
}
|
||||||
if (!empty($data['top_bar'])) {
|
if (!empty($data['top_bar'])) {
|
||||||
echo $this->element('/genericElements/ListTopBar/scaffold', array('data' => $data['top_bar']));
|
echo $this->element('/genericElements/ListTopBar/scaffold', array('data' => $data['top_bar']));
|
||||||
|
@ -81,7 +82,7 @@
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
if (!$skipPagination) {
|
if (!$skipPagination) {
|
||||||
echo $this->element('/genericElements/IndexTable/pagination_counter', $paginationData);
|
echo $this->element('/genericElements/IndexTable/pagination_counter', $paginationData);
|
||||||
echo $this->element('/genericElements/IndexTable/pagination', $paginationData);
|
echo $this->element('/genericElements/IndexTable/pagination_links');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -9,10 +9,4 @@
|
||||||
$options = array_merge($options, $paginationOptions);
|
$options = array_merge($options, $paginationOptions);
|
||||||
}
|
}
|
||||||
echo $this->Paginator->options($options);
|
echo $this->Paginator->options($options);
|
||||||
echo sprintf(
|
|
||||||
'<div class="pagination"><ul>%s%s%s</ul></div>',
|
|
||||||
$this->Paginator->prev('« ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span')),
|
|
||||||
$this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span')),
|
|
||||||
$this->Paginator->next(__('next') . ' »', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'))
|
|
||||||
);
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?php
|
||||||
|
echo sprintf(
|
||||||
|
'<div class="pagination"><ul>%s%s%s</ul></div>',
|
||||||
|
$this->Paginator->prev('« ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span')),
|
||||||
|
$this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span')),
|
||||||
|
$this->Paginator->next(__('next') . ' »', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'))
|
||||||
|
);
|
Loading…
Reference in New Issue