summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-01-15 08:54:19 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-01-15 08:54:19 +0000
commit91be49640f0d0e6fd24fc699848bce117bedafa7 (patch)
tree1c7db231500223506c7a73979afd0b2da39cff9b
parentaaad15c2f56c34c08ffa00ca5fbf9b4f4dc42640 (diff)
downloadwebtrees-91be49640f0d0e6fd24fc699848bce117bedafa7.tar.gz
webtrees-91be49640f0d0e6fd24fc699848bce117bedafa7.tar.bz2
webtrees-91be49640f0d0e6fd24fc699848bce117bedafa7.zip
Add sorting and pagination to list of stories
-rw-r--r--resources/views/modules/stories/config.phtml11
1 files changed, 10 insertions, 1 deletions
diff --git a/resources/views/modules/stories/config.phtml b/resources/views/modules/stories/config.phtml
index 330ad62b25..48bdab303e 100644
--- a/resources/views/modules/stories/config.phtml
+++ b/resources/views/modules/stories/config.phtml
@@ -30,7 +30,16 @@ use Fisharebest\Webtrees\I18N;
</a>
</p>
-<table class="table table-bordered table-sm">
+<table
+ class="table table-bordered table-sm datatables d-none"
+ <?= view('lists/datatables-attributes') ?>
+ data-columns="<?= e(json_encode([
+ null,
+ null,
+ ['sortable' => false],
+ ['sortable' => false],
+ ])) ?>"
+>
<thead>
<tr>
<th><?= I18N::translate('Individual') ?></th>