2017-09-16 01:15:17 +09:00
|
|
|
@model UsersViewModel
|
|
|
|
@{
|
2018-04-19 15:42:12 -05:00
|
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Users);
|
2017-09-16 01:15:17 +09:00
|
|
|
}
|
|
|
|
|
2018-05-08 17:57:53 +09:00
|
|
|
<partial name="_StatusMessage" for="StatusMessage" />
|
2017-09-16 01:15:17 +09:00
|
|
|
|
2019-05-28 08:40:10 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h4>@ViewData["Title"]</h4>
|
|
|
|
</div>
|
|
|
|
<div class="col text-right">
|
|
|
|
<a
|
|
|
|
asp-controller="Account"
|
|
|
|
asp-action="Register"
|
|
|
|
asp-route-returnUrl="@Context.Request.GetCurrentPath()"
|
|
|
|
asp-route-logon="false"
|
|
|
|
class="btn btn-primary"
|
|
|
|
role="button">
|
|
|
|
<span class="fa fa-plus"></span> Add User
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="users">
|
|
|
|
<table class="table table-sm table-responsive-md">
|
|
|
|
<thead>
|
2017-10-27 17:53:04 +09:00
|
|
|
<tr>
|
2019-05-28 08:40:10 -04:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Email</th>
|
|
|
|
<th>Actions</th>
|
2018-03-22 19:55:14 +09:00
|
|
|
</tr>
|
2019-05-28 08:40:10 -04:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var user in Model.Users)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@user.Name</td>
|
|
|
|
<td>@user.Email</td>
|
|
|
|
<td><a asp-action="User" asp-route-userId="@user.Id">Edit</a> <span> - </span> <a asp-action="DeleteUser" asp-route-userId="@user.Id">Remove</a></td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|