36 lines
1.6 KiB
Plaintext
36 lines
1.6 KiB
Plaintext
<div class="cards-group basic-setting">
|
|
<div class="card card-default">
|
|
<div class="card-body">
|
|
@await Html.PartialAsync("Table", new DataTablesModel
|
|
{
|
|
Name = "tax-categories-grid",
|
|
UrlRead = new DataUrl("FixedRatesList", "FixedOrByCountryStateZip", null),
|
|
UrlUpdate = new DataUrl("FixedRateUpdate", "FixedOrByCountryStateZip", null),
|
|
Length = Model.PageSize,
|
|
LengthMenu = Model.AvailablePageSizes,
|
|
ColumnCollection = new List<ColumnProperty>
|
|
{
|
|
new ColumnProperty(nameof(FixedTaxRateModel.TaxCategoryName))
|
|
{
|
|
Title = T("Plugins.Tax.FixedOrByCountryStateZip.Fields.TaxCategoryName").Text,
|
|
Width = "400"
|
|
},
|
|
new ColumnProperty(nameof(FixedTaxRateModel.Rate))
|
|
{
|
|
Title = T("Plugins.Tax.FixedOrByCountryStateZip.Fields.Rate").Text,
|
|
Width = "200",
|
|
Editable = true,
|
|
EditType = EditType.Number
|
|
},
|
|
new ColumnProperty(nameof(FixedTaxRateModel.TaxCategoryId))
|
|
{
|
|
Title = T("Admin.Common.Edit").Text,
|
|
Width = "200",
|
|
ClassName = NopColumnClassDefaults.Button + " column-edit",
|
|
Render = new RenderButtonsInlineEdit()
|
|
}
|
|
}
|
|
})
|
|
</div>
|
|
</div>
|
|
</div> |