Try your search with a different keyword or use * as a wildcard.
@model ProductModel
@T("Admin.Catalog.Products.SpecificationAttributes.Hint")
@if (Model.Id > 0)
{
/*hide "add spec" table if no attributes are defined*/
if (Model.HasAvailableSpecificationAttributes)
{
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "specificationattributes-grid",
UrlRead = new DataUrl("ProductSpecAttrList", "Product", new RouteValueDictionary { [nameof(Model.ProductSpecificationAttributeSearchModel.ProductId)] = Model.ProductSpecificationAttributeSearchModel.ProductId }),
Length = Model.ProductPictureSearchModel.PageSize,
LengthMenu = Model.ProductPictureSearchModel.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(ProductSpecificationAttributeModel.AttributeTypeName))
{
Title = T("Admin.Catalog.Products.SpecificationAttributes.Fields.AttributeType").Text,
Width = "150"
},
new ColumnProperty(nameof(ProductSpecificationAttributeModel.AttributeName))
{
Title = T("Admin.Catalog.Products.SpecificationAttributes.Fields.SpecificationAttribute").Text,
Width = "200"
},
new ColumnProperty(nameof(ProductSpecificationAttributeModel.ValueRaw))
{
Title = T("Admin.Catalog.Products.SpecificationAttributes.Fields.Value").Text,
Width = "200",
Encode = false
},
new ColumnProperty(nameof(ProductSpecificationAttributeModel.AllowFiltering))
{
Title = T("Admin.Catalog.Products.SpecificationAttributes.Fields.AllowFiltering").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(ProductSpecificationAttributeModel.ShowOnProductPage))
{
Title = T("Admin.Catalog.Products.SpecificationAttributes.Fields.ShowOnProductPage").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(ProductSpecificationAttributeModel.DisplayOrder))
{
Title = T("Admin.Catalog.Products.SpecificationAttributes.Fields.DisplayOrder").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll
},
new ColumnProperty(nameof(ProductSpecificationAttributeModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "100",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonEdit(new DataUrl("~/Admin/Product/ProductSpecAttributeAddOrEdit?productId=" + Model.ProductSpecificationAttributeSearchModel.ProductId + "&specificationId=", true))
}
}
})
}
else
{
@T("Admin.Catalog.Products.SpecificationAttributes.NoAttributes")
}
}
else
{
@T("Admin.Catalog.Products.SpecificationAttributes.SaveBeforeEdit")
}