diff options
Diffstat (limited to 'Project-Unite/Views')
| -rw-r--r-- | Project-Unite/Views/Admin/AddUserToRole.cshtml | 4 | ||||
| -rw-r--r-- | Project-Unite/Views/Admin/RoleDetails.cshtml | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Project-Unite/Views/Admin/AddUserToRole.cshtml b/Project-Unite/Views/Admin/AddUserToRole.cshtml index 386507c..d91124a 100644 --- a/Project-Unite/Views/Admin/AddUserToRole.cshtml +++ b/Project-Unite/Views/Admin/AddUserToRole.cshtml @@ -11,11 +11,11 @@ <table class="table-condensed"> <tr> <td>@Html.DisplayNameFor(model => model.Username)</td> - <td>@Html.TextBoxFor(model => model.Username)</td> + <td>@Html.DropdownListFor(model => model.Username, Model.Users, new { @class = "form-control" })</td> </tr> <tr> <td>@Html.DisplayNameFor(model => model.RoleId)</td> - <td>@Html.TextBoxFor(model => model.RoleId)</td> + <td>@Html.DropDownListFor(model => model.RoleId, Model.Roles, new { @class = "form-control" })</td> </tr> </table> diff --git a/Project-Unite/Views/Admin/RoleDetails.cshtml b/Project-Unite/Views/Admin/RoleDetails.cshtml index 25b4146..404e0a0 100644 --- a/Project-Unite/Views/Admin/RoleDetails.cshtml +++ b/Project-Unite/Views/Admin/RoleDetails.cshtml @@ -20,6 +20,10 @@ <p>Below is a list of users in this role.</p> +<ul class="nav nav-pills"> + <li><a href="@Url.Action("AddUserToRole", new { id = Model.Id })"><span class="glyphicon glyphicon-plus"></span> Add user to role</a></li> +</ul> + <table class="table"> <tr> <th style="width:65%">User</th> |
