@model Admin.Models.User.DetailsViewModel @{ ViewBag.Title = "User"; } @section Header { @Model.UserName } @section Subheader { User details } @section Actions { @Html.ActionLink("Edit", "Edit", new { id = Model.UserId }, new { @class = "btn btn-secondary" }) }
@Html.HiddenFor(m => m.UserId)
@Html.LabelFor(m => m.LastLogin, new { @class = "form-label fw-bold" })
@if (Model.LastLogin.HasValue) { @Html.DisplayFor(m => m.LastLogin) } else { The user has never logged in }
@Html.LabelFor(m => m.DisplayName, new { @class = "form-label fw-bold" })
@Html.DisplayFor(m => m.DisplayName)
@Html.LabelFor(m => m.ExpiryDays, new { @class = "form-label fw-bold" })
@Html.DisplayFor(m => m.ExpiryDays)
@Html.LabelFor(m => m.OfficeCode, new { @class = "form-label fw-bold" })
@Html.DisplayFor(m => m.OfficeCode)
@Html.LabelFor(m => m.Disabled, new { @class = "form-label fw-bold" })
@Html.CheckBoxFor(m => m.Disabled, new { @class = "form-check-input", role = "switch", @disabled = true })

User roles

@Html.Action("_ListForUser", "UserRole", new { id = Model.UserId })

User fund groups

@Html.Action("_ListForUser", "UserFundGroup", new { id = Model.UserId })

User templates

@Html.Action("_ListForUser", "UserTemplate", new { id = Model.UserId })

User methods of payment

@Html.Action("_ListForUser", "UserMethodOfPayment", new { id = Model.UserId })
@Html.ActionLink("Back", "Back", "User", null, new { @class = "btn btn-secondary" })