Set password operational
Sitewide plan for status messages
This commit is contained in:
@@ -10,11 +10,26 @@
|
||||
<dt>
|
||||
@Html.ViewData.ModelMetadata.DisplayName
|
||||
</dt>
|
||||
<dd @(!string.IsNullOrEmpty(color) ? "class='" + color + "'" : "") >
|
||||
@RenderBody()
|
||||
@if (!string.IsNullOrEmpty(units))
|
||||
{
|
||||
<small><em>@units</em></small>
|
||||
}
|
||||
</dd>
|
||||
@if (string.IsNullOrEmpty(color))
|
||||
{
|
||||
<dd>
|
||||
@RenderBody()
|
||||
@if (!string.IsNullOrEmpty(units))
|
||||
{
|
||||
<small><em>@units</em></small>
|
||||
}
|
||||
</dd>
|
||||
}
|
||||
else
|
||||
{
|
||||
<dd>
|
||||
<span class="label @Html.Encode(color)">
|
||||
@RenderBody()
|
||||
</span>
|
||||
@if (!string.IsNullOrEmpty(units))
|
||||
{
|
||||
<small><em>@units</em></small>
|
||||
}
|
||||
</dd>
|
||||
}
|
||||
</dl>
|
||||
@@ -1,10 +0,0 @@
|
||||
@model MileageTraker.Web.ViewModels.User.CreateUserViewModel
|
||||
@{
|
||||
Layout = "~/Views/Shared/EditorTemplates/_FieldLayout.cshtml";
|
||||
}
|
||||
@Html.CheckBoxListFor(
|
||||
m => m.Roles,
|
||||
m => m.AvailableRoles,
|
||||
m => m,
|
||||
m => m,
|
||||
m => m.Roles)
|
||||
@@ -0,0 +1,13 @@
|
||||
@if (TempData.ContainsKey("StatusMessage"))
|
||||
{
|
||||
<p class="center-content alert alert-info">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
@TempData["StatusMessage"]
|
||||
</p>
|
||||
} else if (ViewBag.StatusMessage != null)
|
||||
{
|
||||
<p class="center-content alert alert-info">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
@ViewBag.StatusMessage
|
||||
</p>
|
||||
}
|
||||
Reference in New Issue
Block a user