Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model WidgetSearchModel

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

@T("Admin.ContentManagement.Widgets")

  @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.WidgetListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "widgets-grid", UrlRead = new DataUrl("List", "Widget", null), UrlUpdate = new DataUrl("WidgetUpdate", "Widget", null), Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(nameof(WidgetModel.FriendlyName)) { Title = T("Admin.ContentManagement.Widgets.Fields.FriendlyName").Text, Width = "250" }, new ColumnProperty(nameof(WidgetModel.SystemName)) { Title = T("Admin.ContentManagement.Widgets.Fields.SystemName").Text, Width = "250" }, new ColumnProperty(nameof(WidgetModel.DisplayOrder)) { Title = T("Admin.ContentManagement.Widgets.Fields.DisplayOrder").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Editable = true, EditType = EditType.Number }, new ColumnProperty(nameof(WidgetModel.IsActive)) { Title = T("Admin.ContentManagement.Widgets.Fields.IsActive").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean(), Editable = true, EditType = EditType.Checkbox }, new ColumnProperty(nameof(WidgetModel.SystemName)) { Title = T("Admin.ContentManagement.Widgets.Configure").Text, Width = "150", ClassName = NopColumnClassDefaults.Button, Render = new RenderCustom("renderColumnConfigure") }, new ColumnProperty(nameof(WidgetModel.SystemName)) { Title = T("Admin.Common.Edit").Text, Width = "200", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonsInlineEdit() } } })