diff options
| author | Michael <[email protected]> | 2017-03-20 16:45:17 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-20 16:45:17 -0400 |
| commit | cdc61eb4ea5309769ad4db84d92594e4dc3dff67 (patch) | |
| tree | a8297a7aecc4376f07a497a5e02ab5ff165bfbd3 /Project-Unite/Views/Admin/RoleDetails.cshtml | |
| parent | d9f475e1f33bbf39ca0d79d7a6b0c2fd501b4f2d (diff) | |
| download | project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.gz project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.bz2 project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.zip | |
Initial commit (azure deploy test)
Diffstat (limited to 'Project-Unite/Views/Admin/RoleDetails.cshtml')
| -rw-r--r-- | Project-Unite/Views/Admin/RoleDetails.cshtml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Project-Unite/Views/Admin/RoleDetails.cshtml b/Project-Unite/Views/Admin/RoleDetails.cshtml new file mode 100644 index 0000000..25b4146 --- /dev/null +++ b/Project-Unite/Views/Admin/RoleDetails.cshtml @@ -0,0 +1,44 @@ +@using Microsoft.AspNet.Identity + +@model Project_Unite.Models.Role + +@{ + ViewBag.Title = "Details for " + Model.Name; +} + +<h2>Role details</h2> + + <h4 style="color:@Model.ColorHex">@Model.Name</h4> + <p><strong>ID: </strong>@Model.Id</p> + <p><strong>Description:</strong></p> + <p>@Model.Description</p> + <p><strong>Priority: </strong>@Model.Priority</p> + +<hr/> + +<h2>Users</h2> + +<p>Below is a list of users in this role.</p> + +<table class="table"> + <tr> + <th style="width:65%">User</th> + <th>Actions</th> + </tr> + @foreach(var user in Model.Users) + { + <tr> + <td>@Html.UserLink(user.UserId)</td> + <td> + @if(User.Identity.GetUserId() != user.UserId) + { + @Html.ActionLink("Remove", "RemoveUserFromRole", "Admin", new { id = user.RoleId, usr = user.UserId}, new { @class="btn btn-danger"}) + + } + @Html.ActionLink("User details", "UserDetails", "Moderator", new { id = user.UserId }, new { @class = "btn btn-default" }) + + + </td> + </tr> + } +</table>
\ No newline at end of file |
