@T("Admin.Common.Search")
Try your search with a different keyword or use * as a wildcard.
@model CategorySearchModel
@{
//page title
ViewBag.PageTitle = T("Admin.Catalog.Categories").Text;
//active menu item (system name)
NopHtml.SetActiveMenuItemSystemName("Categories");
}
@{
const string hideSearchBlockAttributeName = "CategoryPage.HideSearchBlock";
var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}
@T("Admin.Catalog.Categories")
@T("Admin.Common.AddNew")
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.CategoryListButtons, additionalData = Model })
@T("Admin.Common.Search")
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "categories-grid",
UrlRead = new DataUrl("List", "Category", null),
SearchButtonId = "search-categories",
Length = Model.PageSize,
LengthMenu = Model.AvailablePageSizes,
Filters = new List
{
new FilterParameter(nameof(Model.SearchCategoryName)),
new FilterParameter(nameof(Model.SearchStoreId)),
new FilterParameter(nameof(Model.SearchPublishedId))
},
ColumnCollection = new List
{
new ColumnProperty(nameof(CategoryModel.Id))
{
IsMasterCheckBox = true,
Render = new RenderCheckBox("checkbox_categories"),
ClassName = NopColumnClassDefaults.CenterAll,
Width = "50"
},
new ColumnProperty(nameof(CategoryModel.Breadcrumb))
{
Title = T("Admin.Catalog.Categories.Fields.Name").Text
},
new ColumnProperty(nameof(CategoryModel.Published))
{
Title = T("Admin.Catalog.Categories.Fields.Published").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(CategoryModel.DisplayOrder))
{
Title = T("Admin.Catalog.Categories.Fields.DisplayOrder").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll
},
new ColumnProperty(nameof(CategoryModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "100",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonEdit(new DataUrl("Edit"))
}
}
})
@*import categories form*@