@model TightWiki.Models.ViewModels.Admin.AccountsViewModel @using TightWiki.Library @using TightWiki.Models @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }

Accounts

Global configuration for user accounts.

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} Add new account

@using (Html.BeginForm(null, null, FormMethod.Get, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" })) {
@Html.TextBoxFor(x => x.SearchString, new { @class = "form-control" })
@if (Model.Users.Count > 0) { @foreach (var user in Model.Users) { }
Account First Name Last Name Country TimeZone EmailAddress CreatedDate
@user.AccountName @user.FirstName @user.LastName @user.Country @user.TimeZone @user.EmailAddress @Html.Raw(((user.EmailConfirmed == true) ? "✓" : "")) @user.CreatedDate
@Html.Raw(TightWiki.Library.PageSelectorGenerator.Generate(Context.Request.QueryString, Model.PaginationPageCount)) } else {
Either there are no accounts configured or your search criteria returned no results.
} }
Add new account