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