diff --git a/Project-Unite/Views/Admin/Index.cshtml b/Project-Unite/Views/Admin/Index.cshtml index 942838e..38a2ca6 100644 --- a/Project-Unite/Views/Admin/Index.cshtml +++ b/Project-Unite/Views/Admin/Index.cshtml @@ -86,6 +86,78 @@ git clone https://github.com/MichaelTheShifter/Project-Unite

This feature is not yet implemented.

+ + @*ROLES*@ +
+

Roles

+ +

Here, you can see a list of all the roles in the system.

+ + +
+ @for (int i = 0; i < db.Roles.GetPageCount(10); i++) + { + string htmlClass = "tab-pane fade in"; + if (i == 0) + { + htmlClass += " active"; + } +
+ + + + + + + @{ + Role[] roles = db.Roles.ToArray() as Role[]; + roles = roles.OrderByDescending(x => x.Priority).ToArray(); + } + @foreach (Role role in roles.GetItemsOnPage(i, 10)) + { + + + + + + } +
RolePriorityActions
+

@role.Name

+

ID: @role.Id •Users: @role.Users.Count() • Priority: @role.Priority

+
+ @if(role.Priority > 0) + { + + } + @if (role.Priority < roles.Length) + { + + } + + Details +
+
+ } +
+
+ + + + + + + @*USERS*@

Users