Webiant Logo Webiant Logo
  1. No results found.

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

_CreateOrUpdate.RelatedProducts.cshtml

@model ProductModel

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

@if (Model.Id > 0) {
@await Html.PartialAsync("Table", new DataTablesModel { Name = "relatedproducts-grid", UrlRead = new DataUrl("RelatedProductList", "Product", new RouteValueDictionary { [nameof(Model.RelatedProductSearchModel.ProductId)] = Model.RelatedProductSearchModel.ProductId }), UrlDelete = new DataUrl("RelatedProductDelete", "Product", null), UrlUpdate = new DataUrl("RelatedProductUpdate", "Product", null), Length = Model.RelatedProductSearchModel.PageSize, LengthMenu = Model.RelatedProductSearchModel.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(nameof(RelatedProductModel.Product2Name)) { Title = T("Admin.Catalog.Products.RelatedProducts.Fields.Product").Text }, new ColumnProperty(nameof(RelatedProductModel.DisplayOrder)) { Title = T("Admin.Catalog.Products.RelatedProducts.Fields.DisplayOrder").Text, Width = "150", ClassName = NopColumnClassDefaults.CenterAll, Editable = true, EditType = EditType.Number }, new ColumnProperty(nameof(RelatedProductModel.ProductId2)) { Title = T("Admin.Common.View").Text, Width = "150", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonView(new DataUrl("~/Admin/Product/Edit/", nameof(RelatedProductModel.Product2Name))) }, new ColumnProperty(nameof(RelatedProductModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "200", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonsInlineEdit() }, new ColumnProperty(nameof(RelatedProductModel.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.RelatedProducts.SaveBeforeEdit")
}