65 lines
2.4 KiB
Plaintext
65 lines
2.4 KiB
Plaintext
{varType FuzeWorks\Authentication\Model\User[] $users}
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h3 class="card-title">List of registered users on this system</h3>
|
|
<a href="/{$adminKey}/authentication/create" class="btn btn-sm btn-primary float-right">Create User</a>
|
|
</div>
|
|
<!-- /.card-header -->
|
|
<div class="card-body">
|
|
<table id="example2" class="table table-bordered table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Email</th>
|
|
<th>Permissions</th>
|
|
<th>Email verified</th>
|
|
<th>2FA</th>
|
|
<th>Active</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach $users as $user}
|
|
<tr>
|
|
<td><a href="/{$adminKey}/authentication/view/{$user->id}">{$user->primaryEmail}</a></td>
|
|
<td>{$user->permissions|implode:", "}</td>
|
|
<td>{is_null($user->emailVerifyToken) ? "Yes" : "No"}</td>
|
|
<td>{is_null($user->mfaSecret) ? "No" : "Yes"}</td>
|
|
<td>{$user->active ? "Yes" : "No"}</td>
|
|
</tr>
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th>Email</th>
|
|
<th>Permissions</th>
|
|
<th>Email verified</th>
|
|
<th>2FA</th>
|
|
<th>Active</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
<!-- /.card-body -->
|
|
</div>
|
|
<!-- /.card -->
|
|
</div>
|
|
<!-- /.col -->
|
|
</div>
|
|
<!-- /.row -->
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
$('#example2').DataTable({
|
|
"paging": true,
|
|
"lengthChange": false,
|
|
"searching": false,
|
|
"ordering": true,
|
|
"info": true,
|
|
"autoWidth": false,
|
|
"responsive": true,
|
|
});
|
|
});
|
|
</script> |