Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model ManufacturerSearchModel

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

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

@T("Admin.Catalog.Manufacturers")

@T("Admin.Common.AddNew") @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ManufacturerListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "manufacturers-grid", UrlRead = new DataUrl("List", "Manufacturer", null), SearchButtonId = "search-manufacturers", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.SearchManufacturerName)), new FilterParameter(nameof(Model.SearchStoreId)), new FilterParameter(nameof(Model.SearchPublishedId)) }, ColumnCollection = new List { new ColumnProperty(nameof(ManufacturerModel.Id)) { IsMasterCheckBox = true, Render = new RenderCheckBox("checkbox_manufacturers"), ClassName = NopColumnClassDefaults.CenterAll, Width = "50" }, new ColumnProperty(nameof(ManufacturerModel.Name)) { Title = T("Admin.Catalog.Manufacturers.Fields.Name").Text }, new ColumnProperty(nameof(ManufacturerModel.Published)) { Title = T("Admin.Catalog.Manufacturers.Fields.Published").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(ManufacturerModel.DisplayOrder)) { Title = T("Admin.Catalog.Manufacturers.Fields.DisplayOrder").Text, Width = "150", ClassName = NopColumnClassDefaults.CenterAll }, new ColumnProperty(nameof(ManufacturerModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonEdit(new DataUrl("Edit")) } } })
@*import manufacturers form*@