2014-10-11 06:57:02 +08:00
|
|
|
@model IEnumerable<System.Web.Security.MembershipUser>
|
|
|
|
|
|
|
|
@{
|
2015-01-05 06:14:43 +08:00
|
|
|
ViewBag.Title = "Manage users | BuildFeed";
|
2014-10-11 06:57:02 +08:00
|
|
|
}
|
|
|
|
|
2015-01-05 06:14:43 +08:00
|
|
|
<h2>Manage users</h2>
|
2014-10-11 06:57:02 +08:00
|
|
|
|
2014-12-16 22:43:26 +08:00
|
|
|
<ul>
|
2015-01-05 06:14:43 +08:00
|
|
|
<li>@Html.ActionLink("View administrators", "admins")</li>
|
|
|
|
<li>@Html.ActionLink("Return to admin panel", "index", "base")</li>
|
2014-12-16 22:43:26 +08:00
|
|
|
</ul>
|
|
|
|
|
2014-11-01 03:28:16 +08:00
|
|
|
<table class="table table-striped table-bordered table-admin">
|
2015-01-05 06:14:43 +08:00
|
|
|
<thead>
|
2014-10-11 06:57:02 +08:00
|
|
|
<tr>
|
2015-01-05 06:14:43 +08:00
|
|
|
<th>
|
|
|
|
Username
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Email Address
|
|
|
|
</th>
|
2014-10-11 06:57:02 +08:00
|
|
|
<td>
|
2015-01-05 06:14:43 +08:00
|
|
|
Last Login Time
|
2014-10-11 06:57:02 +08:00
|
|
|
</td>
|
2014-11-01 03:28:16 +08:00
|
|
|
<td>
|
2015-01-05 06:14:43 +08:00
|
|
|
Last Lockout Time
|
2014-10-11 06:57:02 +08:00
|
|
|
</td>
|
2015-01-05 06:14:43 +08:00
|
|
|
<th style="width:108px;"></th>
|
|
|
|
<th style="width:108px;"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (MembershipUser mu in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => mu.UserName)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => mu.Email)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => mu.LastLoginDate)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => mu.LastLockoutDate)
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
@if (mu.IsApproved)
|
2014-12-05 05:42:47 +08:00
|
|
|
{
|
2015-01-05 06:14:43 +08:00
|
|
|
@Html.ActionLink("Unapprove", "unapprove", new { id = mu.ProviderUserKey }, new { @class = "btn btn-danger", style = "width:90px;" })
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
@Html.ActionLink("Approve", "approve", new { id = mu.ProviderUserKey }, new { @class = "btn btn-success", style = "width:90px;" })
|
|
|
|
}
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
@if (!mu.IsLockedOut)
|
2014-12-05 05:42:47 +08:00
|
|
|
{
|
2015-01-05 06:14:43 +08:00
|
|
|
@Html.ActionLink("Lock", "lock", new { id = mu.ProviderUserKey }, new { @class = "btn btn-danger", style = "width:90px;" })
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
@Html.ActionLink("Unlock", "unlock", new { id = mu.ProviderUserKey }, new { @class = "btn btn-success", style = "width:90px;" })
|
|
|
|
}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
2014-10-11 06:57:02 +08:00
|
|
|
</table>
|