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