summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Admin
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-26 12:21:39 -0400
committerMichael <[email protected]>2017-03-26 12:21:39 -0400
commitf8808ebe131b34da4013b407fe58f235b6a439aa (patch)
tree3f245a4d68432355321d7da0058f05bee3fb77c7 /Project-Unite/Views/Admin
parentec06cd1752682bb74490e73257bc49751b61ec2b (diff)
downloadproject-unite-f8808ebe131b34da4013b407fe58f235b6a439aa.tar.gz
project-unite-f8808ebe131b34da4013b407fe58f235b6a439aa.tar.bz2
project-unite-f8808ebe131b34da4013b407fe58f235b6a439aa.zip
Ability to add user to role
Diffstat (limited to 'Project-Unite/Views/Admin')
-rw-r--r--Project-Unite/Views/Admin/AddUserToRole.cshtml4
-rw-r--r--Project-Unite/Views/Admin/RoleDetails.cshtml4
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>