2018-02-12 05:47:26 +10:00
|
|
|
{{> partials/menu}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-9">
|
2018-01-07 04:55:48 +10:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
2020-01-01 19:20:57 +10:00
|
|
|
<h2>Users <span class="float-right"><a href="/admin/user/new" class="btn btn-outline-success">{{ @root.__ "New user" }}</a></span></h2>
|
2018-01-07 04:55:48 +10:00
|
|
|
<ul class="list-group">
|
|
|
|
{{#each users}}
|
|
|
|
<li class="list-group-item">
|
2019-11-06 18:31:25 +10:00
|
|
|
<strong>{{ @root.__ "User" }}:</strong> {{this.usersName}} - ({{this.userEmail}})
|
2020-01-01 19:20:57 +10:00
|
|
|
<span class="float-right">
|
2019-11-06 18:31:25 +10:00
|
|
|
<strong>{{ @root.__ "Role" }}: </strong>
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#isAnAdmin this.isAdmin}}
|
|
|
|
<span>Admin</span>
|
2019-11-07 16:36:20 +10:00
|
|
|
{{#if ../this.isOwner}}
|
|
|
|
(Owner)
|
|
|
|
{{/if}}
|
2018-01-07 04:55:48 +10:00
|
|
|
{{else}}
|
2019-11-06 18:31:25 +10:00
|
|
|
<span>{{ @root.__ "User" }}</span>
|
2018-01-07 04:55:48 +10:00
|
|
|
{{/isAnAdmin}}
|
2020-01-20 09:34:36 +10:00
|
|
|
{{#isAnAdmin @root.session.isAdmin}}
|
|
|
|
<a href="/admin/user/edit/{{../this._id}}"><i class="fas fa-pencil-alt"></i></a>
|
|
|
|
<a href="#" class="userDelete" data-id="{{../this._id}}"><i class="far fa-trash-alt"></i></a>
|
2018-01-07 04:55:48 +10:00
|
|
|
{{/isAnAdmin}}
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|