Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

List.cshtml

@model OnlineCustomerSearchModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Customers.OnlineCustomers").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Online customers");
}

@T("Admin.Customers.OnlineCustomers")

  @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.OnlineCustomerListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "onlinecustomers-grid", UrlRead = new DataUrl("List", "OnlineCustomer", null), Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(nameof(OnlineCustomerModel.CustomerInfo)) { Title = T("Admin.Customers.OnlineCustomers.Fields.CustomerInfo").Text, Width = "100", Render = new RenderLink(new DataUrl("~/Admin/Customer/Edit", nameof(CustomerModel.Id))) }, new ColumnProperty(nameof(OnlineCustomerModel.LastIpAddress)) { Title = T("Admin.Customers.OnlineCustomers.Fields.IPAddress").Text, Width = "100" }, new ColumnProperty(nameof(OnlineCustomerModel.Location)) { Title = T("Admin.Customers.OnlineCustomers.Fields.Location").Text, Width = "100" }, new ColumnProperty(nameof(OnlineCustomerModel.LastActivityDate)) { Title = T("Admin.Customers.OnlineCustomers.Fields.LastActivityDate").Text, Width = "200", Render = new RenderDate() }, new ColumnProperty(nameof(OnlineCustomerModel.LastVisitedPage)) { Title = T("Admin.Customers.OnlineCustomers.Fields.LastVisitedPage").Text, Width = "100" } } })