Nearing feature complete for driver auth
This commit is contained in:
@@ -8,13 +8,12 @@
|
||||
|
||||
<h2 class="center-content">@ViewBag.Title</h2>
|
||||
|
||||
@using (Html.BeginForm("Create", "User", FormMethod.Post, new { @class = "form-horizontal well center-content" }))
|
||||
@using (Html.BeginForm("Create", "User", FormMethod.Post, new { @class = "form-horizontal well center-content create-user" }))
|
||||
{
|
||||
@Html.Partial("_ValidationSummary")
|
||||
<fieldset>
|
||||
<legend></legend>
|
||||
@Html.EditorForModel()
|
||||
@Html.Partial("_Roles", Model)
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
|
||||
<div class="center-content well">
|
||||
|
||||
@Html.DisplayFor(m => m.FullName)
|
||||
|
||||
<dl class="dl-horizontal username">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(m => m.Username)
|
||||
@@ -25,8 +27,6 @@
|
||||
|
||||
@Html.DisplayFor(m => m.Email)
|
||||
|
||||
@Html.DisplayFor(m => m.FullName)
|
||||
|
||||
<dl class="dl-horizontal roles">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(m => m.Roles)
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
<legend></legend>
|
||||
|
||||
@Html.EditorForModel()
|
||||
@Html.Partial("_Roles", Model)
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
|
||||
@@ -25,7 +25,8 @@
|
||||
|
||||
@grid.GetHtml(columns:
|
||||
grid.Columns(
|
||||
grid.Column("Username", format:
|
||||
grid.Column("FullName", "Full Name"),
|
||||
grid.Column("Username", format:
|
||||
@<text>
|
||||
<span title="@Html.Encode(item.Email)">
|
||||
@Html.Encode(item.Username)
|
||||
@@ -37,7 +38,6 @@
|
||||
LastLockoutDate = item.LastLockoutDate,
|
||||
IsApproved = item.IsApproved})
|
||||
</text> ),
|
||||
grid.Column("FullName", "Full Name"),
|
||||
grid.Column("Roles", format:
|
||||
@<text>
|
||||
@{var roles = Roles.Provider.GetRolesForUser(item.Username);}
|
||||
@@ -50,10 +50,10 @@
|
||||
<span class='label label-warning'>No Role</span>
|
||||
}
|
||||
</text>),
|
||||
grid.Column("LastActivityDate", "Last Activity", format:
|
||||
grid.Column("LastActivityDate", "Last Activity",
|
||||
@<text>
|
||||
@Html.Partial("_LastActivity", (DateTime)item.LastActivityDate)
|
||||
</text>),
|
||||
</text>),
|
||||
grid.Column(format:
|
||||
@<div class='btn-group'>
|
||||
@*Html.ActionLink("Edit", "Edit", new { id = item.UserId }, new { @class = "btn btn-mini" })*@
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
@model MileageTraker.Web.ViewModels.User.RolesViewModel
|
||||
@{
|
||||
Layout = "~/Views/Shared/EditorTemplates/_FieldLayout.cshtml";
|
||||
}
|
||||
@Html.CheckBoxListFor(
|
||||
m => m.Roles,
|
||||
m => m.AvailableRoles,
|
||||
m => m,
|
||||
m => m,
|
||||
m => m.Roles)
|
||||
Reference in New Issue
Block a user