Add log buttons on details pages for Vehicle and User

This commit is contained in:
2014-05-18 19:49:04 -04:00
parent fe0bc4e9ff
commit ef88c52658
4 changed files with 34 additions and 28 deletions
+27 -26
View File
@@ -87,30 +87,31 @@
</div>
<div class="btn-toolbar center-content">
@Html.ActionLink("Edit", "Edit", new { id = Model.UserId }, new { @class = "btn" })
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
Password <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>
@Html.ActionLink("Send Password Reset Email", "SendResetPassword", new { userId = Model.UserId })
</li>
<li>
@Html.ActionLink("Set Password", "SetPassword", new { id = Model.UserId })
</li>
</ul>
</div>
@if (Model.IsApproved)
{
@Html.ActionLink("Disable Account", "DisableUser", new {id = Model.UserId}, new {@class = "btn"})
}
else
{
@Html.ActionLink("Enable Account", "EnableUser", new {id = Model.UserId}, new {@class = "btn"})
}
@if (Model.IsLockedOut)
{
@Html.ActionLink("Unlock", "UnlockUser", new {id = Model.UserId}, new {@class = "btn"})
}
@Html.ActionLink("Edit", "Edit", new { id = Model.UserId }, new { @class = "btn" })
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
Password <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>
@Html.ActionLink("Send Password Reset Email", "SendResetPassword", new { userId = Model.UserId })
</li>
<li>
@Html.ActionLink("Set Password", "SetPassword", new { id = Model.UserId })
</li>
</ul>
</div>
@if (Model.IsApproved)
{
@Html.ActionLink("Disable Account", "DisableUser", new {id = Model.UserId}, new {@class = "btn"})
}
else
{
@Html.ActionLink("Enable Account", "EnableUser", new {id = Model.UserId}, new {@class = "btn"})
}
@if (Model.IsLockedOut)
{
@Html.ActionLink("Unlock", "UnlockUser", new {id = Model.UserId}, new {@class = "btn"})
}
@Html.ActionLink("Logs", "Index", "Log", new { EmployeeName = Model.FullName}, new { @class = "btn" })
</div>