1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\View; ?> 3dd6b2bfcSGreg Roach 4dd6b2bfcSGreg Roach<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), $title]]) ?> 5dd6b2bfcSGreg Roach 6dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 7dd6b2bfcSGreg Roach 8*b6c326d8SGreg Roach<table class="table table-sm table-bordered table-user-list" 9*b6c326d8SGreg Roach <?= view('lists/datatables-attributes') ?> 10*b6c326d8SGreg Roach> 11dd6b2bfcSGreg Roach <thead> 12dd6b2bfcSGreg Roach <tr> 13dd6b2bfcSGreg Roach <th><?= I18N::translate('Edit') ?></th> 14dd6b2bfcSGreg Roach <th><!-- user id --></th> 15dd6b2bfcSGreg Roach <th><?= I18N::translate('Username') ?></th> 16dd6b2bfcSGreg Roach <th><?= I18N::translate('Real name') ?></th> 17dd6b2bfcSGreg Roach <th><?= I18N::translate('Email address') ?></th> 18dd6b2bfcSGreg Roach <th><?= I18N::translate('Language') ?></th> 19dd6b2bfcSGreg Roach <th><!-- date registered --></th> 20dd6b2bfcSGreg Roach <th><?= I18N::translate('Date registered') ?></th> 21adfb3656SGreg Roach <th><!-- last login --></th> 22dd6b2bfcSGreg Roach <th><?= I18N::translate('Last signed in') ?></th> 23dd6b2bfcSGreg Roach <th><?= I18N::translate('Verified') ?></th> 24dd6b2bfcSGreg Roach <th><?= I18N::translate('Approved') ?></th> 25dd6b2bfcSGreg Roach </tr> 26dd6b2bfcSGreg Roach </thead> 27dd6b2bfcSGreg Roach <tbody> 28dd6b2bfcSGreg Roach </tbody> 29dd6b2bfcSGreg Roach</table> 30dd6b2bfcSGreg Roach 31dd6b2bfcSGreg Roach<?php View::push('javascript') ?> 32dd6b2bfcSGreg Roach<script> 33dd6b2bfcSGreg Roach $(".table-user-list").dataTable({ 34dd6b2bfcSGreg Roach processing: true, 35dd6b2bfcSGreg Roach serverSide: true, 36dd6b2bfcSGreg Roach ajax: { 37dd6b2bfcSGreg Roach url: "<?= e(route('admin-users-data')) ?>" 38dd6b2bfcSGreg Roach }, 39dd6b2bfcSGreg Roach autoWidth: false, 40dd6b2bfcSGreg Roach sorting: [[2, "asc"]], 41dd6b2bfcSGreg Roach columns: [ 42dd6b2bfcSGreg Roach /* details */ {sortable: false}, 43dd6b2bfcSGreg Roach /* user-id */ {visible: false}, 44dd6b2bfcSGreg Roach /* user_name */ null, 45dd6b2bfcSGreg Roach /* real_name */ null, 46dd6b2bfcSGreg Roach /* email */ null, 47dd6b2bfcSGreg Roach /* language */ null, 48dd6b2bfcSGreg Roach /* registered (sort) */ {visible: false}, 49dd6b2bfcSGreg Roach /* registered */ {dataSort: 6}, 50dd6b2bfcSGreg Roach /* last_login (sort) */ {visible: false}, 51dd6b2bfcSGreg Roach /* last_login */ {dataSort: 8}, 52dd6b2bfcSGreg Roach /* verified */ null, 53dd6b2bfcSGreg Roach /* approved */ null 54*b6c326d8SGreg Roach ] 55dd6b2bfcSGreg Roach }).fnFilter("<?= e($filter) ?>"); // Pre-fill the search box 56dd6b2bfcSGreg Roach</script> 57dd6b2bfcSGreg Roach<?php View::endpush() ?> 58