@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.PaymentMethodListTop, additionalData = Model })
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.PaymentMethodListBottom, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "paymentmethods-grid",
RowIdBasedOnField = nameof(PaymentMethodModel.SystemName),
UrlRead = new DataUrl("Methods", "Payment", null),
UrlUpdate = new DataUrl("MethodUpdate", "Payment", null),
Length = Model.PaymentsMethod.PageSize,
LengthMenu = Model.PaymentsMethod.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(PaymentMethodModel.FriendlyName))
{
Title = T("Admin.Configuration.Payment.Methods.Fields.FriendlyName").Text,
Editable = true,
EditType = EditType.String
},
new ColumnProperty(nameof(PaymentMethodModel.SystemName))
{
Title = T("Admin.Configuration.Payment.Methods.Fields.SystemName").Text,
Width = "100"
},
new ColumnProperty(nameof(PaymentMethodModel.SupportCapture))
{
Title = T("Admin.Configuration.Payment.Methods.Fields.SupportCapture").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(PaymentMethodModel.SupportRefund))
{
Title = T("Admin.Configuration.Payment.Methods.Fields.SupportRefund").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(PaymentMethodModel.SupportPartiallyRefund))
{
Title = T("Admin.Configuration.Payment.Methods.Fields.SupportPartiallyRefund").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(PaymentMethodModel.SupportVoid))
{
Title = T("Admin.Configuration.Payment.Methods.Fields.SupportVoid").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(PaymentMethodModel.RecurringPaymentType))
{
Title = T("Admin.Configuration.Payment.Methods.Fields.RecurringPaymentType").Text,
Width = "150"
},
new ColumnProperty(nameof(PaymentMethodModel.DisplayOrder))
{
Title = T("Admin.Configuration.Payment.Methods.Fields.DisplayOrder").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Editable = true,
EditType = EditType.Number
},
new ColumnProperty(nameof(PaymentMethodModel.IsActive))
{
Title = T("Admin.Configuration.Payment.Methods.Fields.IsActive").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean(),
Editable = true,
EditType = EditType.Checkbox
},
new ColumnProperty(nameof(PaymentMethodModel.SystemName))
{
Title = T("Admin.Configuration.Payment.Methods.Configure").Text,
Width = "120",
ClassName = NopColumnClassDefaults.Button + " column-configure",
Render = new RenderCustom("renderColumnConfigure")
},
new ColumnProperty(nameof(PaymentMethodModel.SystemName))
{
Title = T("Admin.Common.Edit").Text,
Width = "80",
ClassName = NopColumnClassDefaults.Button + " column-edit",
Render = new RenderButtonsInlineEdit()
}
}
})