Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model LogSearchModel

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

@{
    const string hideSearchBlockAttributeName = "LogPage.HideSearchBlock";
    var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}

@T("Admin.System.Log")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.LogListButtons, additionalData = Model })

@T("Admin.System.Log.List.PremiumSupport", OfficialSite.PremiumSupportServices + Utm.OnAdminLogList)

@await Html.PartialAsync("Table", new DataTablesModel { Name = "log-grid", UrlRead = new DataUrl("LogList", "Log", null), SearchButtonId = "search-log", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.CreatedOnFrom)), new FilterParameter(nameof(Model.CreatedOnTo)), new FilterParameter(nameof(Model.Message)), new FilterParameter(nameof(Model.LogLevelId)) }, ColumnCollection = new List { new ColumnProperty(nameof(LogModel.Id)) { IsMasterCheckBox = true, Render = new RenderCheckBox("checkbox_log"), ClassName = NopColumnClassDefaults.CenterAll, Width = "50" }, new ColumnProperty(nameof(LogModel.LogLevel)) { Title = T("Admin.System.Log.Fields.LogLevel").Text, Width = "100" }, new ColumnProperty(nameof(LogModel.ShortMessage)) { Title = T("Admin.System.Log.Fields.ShortMessage").Text, Encode = false }, new ColumnProperty(nameof(LogModel.CreatedOn)) { Title = T("Admin.System.Log.Fields.CreatedOn").Text, Width = "200", Render = new RenderDate() }, new ColumnProperty(nameof(LogModel.Id)) { Title = T("Admin.Common.View").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonView(new DataUrl("View")) } } })