|
74 | 74 | <nop-doc-reference asp-string-resource="@T("Admin.Documentation.Reference.ProductAttributes", Docs.ProductAttributes + Utm.OnAdmin)" asp-add-wrapper="false" />
|
75 | 75 | </p>
|
76 | 76 | @await Html.PartialAsync("Table", new DataTablesModel
|
77 |
| - { |
78 |
| - Name = "products-grid", |
79 |
| - UrlRead = new DataUrl("List", "ProductAttribute", null), |
80 |
| - SearchButtonId = "search-productattributes", |
81 |
| - Length = Model.PageSize, |
82 |
| - LengthMenu = Model.AvailablePageSizes, |
83 |
| - Filters = new List<FilterParameter> |
84 | 77 | {
|
85 |
| - new FilterParameter(nameof(Model.SearchProductAttributeName)) |
86 |
| - }, |
87 |
| - ColumnCollection = new List<ColumnProperty> |
88 |
| - { |
89 |
| - new ColumnProperty(nameof(ProductAttributeModel.Id)) |
90 |
| - { |
91 |
| - IsMasterCheckBox = true, |
92 |
| - Render = new RenderCheckBox("checkbox_productattributes"), |
93 |
| - ClassName = NopColumnClassDefaults.CenterAll, |
94 |
| - Width = "50" |
95 |
| - }, |
96 |
| - new ColumnProperty(nameof(ProductAttributeModel.Name)) |
97 |
| - { |
98 |
| - Title = T("Admin.Catalog.Attributes.ProductAttributes.Fields.Name").Text |
99 |
| - }, |
100 |
| - new ColumnProperty(nameof(ProductAttributeModel.Id)) |
101 |
| - { |
102 |
| - Title = T("Admin.Common.Edit").Text, |
103 |
| - Width = "100", |
104 |
| - ClassName = NopColumnClassDefaults.Button, |
105 |
| - Render = new RenderButtonEdit(new DataUrl("~/Admin/ProductAttribute/Edit")) |
106 |
| - } |
107 |
| - } |
108 |
| - }) |
| 78 | + Name = "products-grid", |
| 79 | + UrlRead = new DataUrl("List", "ProductAttribute", null), |
| 80 | + SearchButtonId = "search-productattributes", |
| 81 | + Length = Model.PageSize, |
| 82 | + LengthMenu = Model.AvailablePageSizes, |
| 83 | + Filters = new List<FilterParameter> |
| 84 | + { |
| 85 | + new FilterParameter(nameof(Model.SearchProductAttributeName)) |
| 86 | + }, |
| 87 | + ColumnCollection = new List<ColumnProperty> |
| 88 | + { |
| 89 | + new ColumnProperty(nameof(ProductAttributeModel.Id)) |
| 90 | + { |
| 91 | + IsMasterCheckBox = true, |
| 92 | + Render = new RenderCheckBox("checkbox_productattributes"), |
| 93 | + ClassName = NopColumnClassDefaults.CenterAll, |
| 94 | + Width = "50" |
| 95 | + }, |
| 96 | + new ColumnProperty(nameof(ProductAttributeModel.Name)) |
| 97 | + { |
| 98 | + Title = T("Admin.Catalog.Attributes.ProductAttributes.Fields.Name").Text |
| 99 | + }, |
| 100 | + new ColumnProperty(nameof(ProductAttributeModel.Id)) |
| 101 | + { |
| 102 | + Title = T("Admin.Common.Edit").Text, |
| 103 | + Width = "100", |
| 104 | + ClassName = NopColumnClassDefaults.Button, |
| 105 | + Render = new RenderButtonEdit(new DataUrl("~/Admin/ProductAttribute/Edit")) |
| 106 | + } |
| 107 | + } |
| 108 | + }) |
109 | 109 |
|
110 | 110 | <script>
|
111 | 111 | $(function() {
|
|
0 commit comments