Webiant Logo Webiant Logo
  1. No results found.

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

_SelectProductToAdd.cshtml

@model Nop.Plugin.Misc.RFQ.Models.Admin.ProductSearchModel
@using Nop.Web.Areas.Admin.Models.Catalog

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

@await Html.PartialAsync("Table", new DataTablesModel { Name = "products-grid", UrlRead = new DataUrl("AddNewProduct", "RfqAdmin", new RouteValueDictionary { [nameof(Model.EntityId)] = Model.EntityId }), SearchButtonId = "search-products", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new(nameof(Model.SearchProductName)), new(nameof(Model.SearchCategoryId)), new(nameof(Model.SearchManufacturerId)), new(nameof(Model.SearchProductTypeId)) }, ColumnCollection = new List { new(nameof(ProductModel.Id)) { Title = T("Admin.Common.Select").Text, Render = new RenderCustom("renderColumnSelectProduct"), ClassName = NopColumnClassDefaults.Button, Width = "50", }, new(nameof(ProductModel.Name)) { Title = T("Plugins.Misc.RFQ.Products.AddNew.Name").Text, Width = "400" }, new(nameof(ProductModel.Sku)) { Title = T("Plugins.Misc.RFQ.Products.AddNew.SKU").Text, Width = "100" } } })