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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<h4>@ViewData["Title"]</h4>
|
2018-05-08 17:57:53 +09:00
|
|
|
<partial name="_StatusMessage" for="StatusMessage" />
|
2017-09-16 01:15:17 +09:00
|
|
|
|
2018-08-02 00:16:16 +09:00
|
|
|
<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> Create a new user</a>
|
2018-04-08 00:06:47 -05:00
|
|
|
<table class="table table-sm table-responsive-md">
|
2018-04-05 23:20:12 -05:00
|
|
|
<thead>
|
2017-10-27 17:53:04 +09:00
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Email</th>
|
2017-12-04 14:39:02 +09:00
|
|
|
<th>Actions</th>
|
2017-10-27 17:53:04 +09:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-04-05 23:20:12 -05:00
|
|
|
@foreach (var user in Model.Users)
|
2017-10-27 17:53:04 +09:00
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@user.Name</td>
|
|
|
|
<td>@user.Email</td>
|
2018-03-22 19:55:14 +09:00
|
|
|
<td><a asp-action="User" asp-route-userId="@user.Id">Modify</a> <span> - </span> <a asp-action="DeleteUser" asp-route-userId="@user.Id">Remove</a></td>
|
|
|
|
</tr>
|
|
|
|
}
|
2017-10-27 17:53:04 +09:00
|
|
|
</tbody>
|
|
|
|
</table>
|