@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.TaxCategoryListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "tax-categories-grid",
UrlRead = new DataUrl("Categories", "Tax", null),
UrlDelete = new DataUrl("CategoryDelete", "Tax", null),
UrlUpdate = new DataUrl("CategoryUpdate", "Tax", null),
Length = Model.PageSize,
LengthMenu = Model.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(TaxCategoryModel.Name))
{
Title = T("Admin.Configuration.Tax.Categories.Fields.Name").Text,
Width = "300",
Editable = true,
EditType = EditType.String
},
new ColumnProperty(nameof(TaxCategoryModel.DisplayOrder))
{
Title = T("Admin.Configuration.Tax.Categories.Fields.DisplayOrder").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Editable = true,
EditType = EditType.Number
},
new ColumnProperty(nameof(TaxCategoryModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "200",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonsInlineEdit()
},
new ColumnProperty(nameof(TaxCategoryModel.Id))
{
Title = T("Admin.Common.Delete").Text,
Width = "100",
Render = new RenderButtonRemove(T("Admin.Common.Delete").Text),
ClassName = NopColumnClassDefaults.Button
}
}
})
@T("Admin.Common.AddNewRecord")