Webiant Logo Webiant Logo
  1. No results found.

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

_CreateOrUpdate.CrossSellsProducts.cshtml

@model ProductModel

@T("Admin.Catalog.Products.CrossSells.Hint")

@if (Model.Id > 0) {
@await Html.PartialAsync("Table", new DataTablesModel { Name = "crosssellproducts-grid", UrlRead = new DataUrl("CrossSellProductList", "Product", new RouteValueDictionary { [nameof(Model.CrossSellProductSearchModel.ProductId)] = Model.CrossSellProductSearchModel.ProductId }), UrlDelete = new DataUrl("CrossSellProductDelete", "Product", null), Length = Model.CrossSellProductSearchModel.PageSize, LengthMenu = Model.CrossSellProductSearchModel.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(nameof(CrossSellProductModel.Product2Name)) { Title = T("Admin.Catalog.Products.CrossSells.Fields.Product").Text, Render = new RenderCustom("renderColumnCrossSellProductName") }, new ColumnProperty(nameof(CrossSellProductModel.Id)) { Title = T("Admin.Common.Delete").Text, Width = "100", Render = new RenderButtonRemove(T("Admin.Common.Delete").Text), ClassName = NopColumnClassDefaults.Button } } })
} else {
@T("Admin.Catalog.Products.CrossSells.SaveBeforeEdit")
}