10c0910bfSGreg Roach<?php 2dd6b2bfcSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 50c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 64c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListData; 70c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 80c0910bfSGreg Roachuse Fisharebest\Webtrees\View; 90c0910bfSGreg Roach 107c2c99faSGreg Roach/** 117c2c99faSGreg Roach * @var string $filter 127c2c99faSGreg Roach * @var string $title 137c2c99faSGreg Roach */ 147c2c99faSGreg Roach 150c0910bfSGreg Roach?> 160c0910bfSGreg Roach 170c0910bfSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?> 18dd6b2bfcSGreg Roach 19dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 20dd6b2bfcSGreg Roach 21b6c326d8SGreg Roach<table class="table table-sm table-bordered table-user-list" 22b6c326d8SGreg Roach <?= view('lists/datatables-attributes') ?> 23b6c326d8SGreg Roach> 24dd6b2bfcSGreg Roach <thead> 25dd6b2bfcSGreg Roach <tr> 26dd6b2bfcSGreg Roach <th><?= I18N::translate('Edit') ?></th> 27dd6b2bfcSGreg Roach <th><!-- user id --></th> 28dd6b2bfcSGreg Roach <th><?= I18N::translate('Username') ?></th> 29dd6b2bfcSGreg Roach <th><?= I18N::translate('Real name') ?></th> 30dd6b2bfcSGreg Roach <th><?= I18N::translate('Email address') ?></th> 31dd6b2bfcSGreg Roach <th><?= I18N::translate('Language') ?></th> 32dd6b2bfcSGreg Roach <th><!-- date registered --></th> 33dd6b2bfcSGreg Roach <th><?= I18N::translate('Date registered') ?></th> 34adfb3656SGreg Roach <th><!-- last login --></th> 35dd6b2bfcSGreg Roach <th><?= I18N::translate('Last signed in') ?></th> 36dd6b2bfcSGreg Roach <th><?= I18N::translate('Verified') ?></th> 37dd6b2bfcSGreg Roach <th><?= I18N::translate('Approved') ?></th> 38dd6b2bfcSGreg Roach </tr> 39dd6b2bfcSGreg Roach </thead> 40dd6b2bfcSGreg Roach <tbody> 41dd6b2bfcSGreg Roach </tbody> 42dd6b2bfcSGreg Roach</table> 43dd6b2bfcSGreg Roach 44dd6b2bfcSGreg Roach<?php View::push('javascript') ?> 45dd6b2bfcSGreg Roach<script> 46dd6b2bfcSGreg Roach $(".table-user-list").dataTable({ 47dd6b2bfcSGreg Roach processing: true, 48dd6b2bfcSGreg Roach serverSide: true, 49dd6b2bfcSGreg Roach ajax: { 504c3563c0SGreg Roach url: "<?= e(route(UserListData::class)) ?>" 51dd6b2bfcSGreg Roach }, 52dd6b2bfcSGreg Roach autoWidth: false, 53dd6b2bfcSGreg Roach sorting: [[2, "asc"]], 54dd6b2bfcSGreg Roach columns: [ 55dd6b2bfcSGreg Roach /* details */ {sortable: false}, 56dd6b2bfcSGreg Roach /* user-id */ {visible: false}, 57dd6b2bfcSGreg Roach /* user_name */ null, 58dd6b2bfcSGreg Roach /* real_name */ null, 59dd6b2bfcSGreg Roach /* email */ null, 60dd6b2bfcSGreg Roach /* language */ null, 61dd6b2bfcSGreg Roach /* registered (sort) */ {visible: false}, 62dd6b2bfcSGreg Roach /* registered */ {dataSort: 6}, 63dd6b2bfcSGreg Roach /* last_login (sort) */ {visible: false}, 64dd6b2bfcSGreg Roach /* last_login */ {dataSort: 8}, 65dd6b2bfcSGreg Roach /* verified */ null, 66dd6b2bfcSGreg Roach /* approved */ null 67b6c326d8SGreg Roach ] 68dd6b2bfcSGreg Roach }).fnFilter("<?= e($filter) ?>"); // Pre-fill the search box 69dd6b2bfcSGreg Roach</script> 70dd6b2bfcSGreg Roach<?php View::endpush() ?> 71