@model Orchard.Users.ViewModels.UsersIndexViewModel @using Orchard.Users.Models; @using Orchard.Users.ViewModels; @{ var userIndex = 0; Layout.Title = T("Users").ToString(); } @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
@Html.ActionLink(T("Add a new user").ToString(), "Create", new { }, new { @class = "button primaryAction" })
@Html.TextBoxFor(m => m.Options.Search, new { @class = "text" })
@foreach (var entry in Model.Users) { userIndex++; }
@T("Name") @T("Email") @T("Actions") @T("Creation Time") @T("Last Login Time")
@if (entry.User.RegistrationStatus == UserStatus.Approved && entry.User.EmailStatus == UserStatus.Approved) { @T( } else { @T( } @Html.ActionLink(entry.User.UserName, "Edit", new { entry.User.Id }) @entry.User.Email @if (entry.User.CreatedUtc != null) { @Display(New.DateTimeRelative(dateTimeUtc: entry.User.CreatedUtc)) } @if (entry.User.LastLoginUtc != null) { @Display(New.DateTimeRelative(dateTimeUtc: entry.User.LastLoginUtc)) }
@Display(Model.Pager)
}