@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "multifactormethods-grid",
UrlRead = new DataUrl("MultiFactorMethods", "Authentication", null),
UrlUpdate = new DataUrl("MultiFactorMethodUpdate", "Authentication", null),
Length = Model.PageSize,
LengthMenu = Model.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(MultiFactorAuthenticationMethodModel.FriendlyName))
{
Title = T("Admin.Configuration.Authentication.MultiFactorMethods.Fields.FriendlyName").Text,
Width = "250"
},
new ColumnProperty(nameof(MultiFactorAuthenticationMethodModel.SystemName))
{
Title = T("Admin.Configuration.Authentication.MultiFactorMethods.Fields.SystemName").Text,
Width = "250"
},
new ColumnProperty(nameof(MultiFactorAuthenticationMethodModel.DisplayOrder))
{
Title = T("Admin.Configuration.Authentication.MultiFactorMethods.Fields.DisplayOrder").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Editable = true,
EditType = EditType.Number
},
new ColumnProperty(nameof(MultiFactorAuthenticationMethodModel.IsActive))
{
Title = T("Admin.Configuration.Authentication.MultiFactorMethods.Fields.IsActive").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean(),
Editable = true,
EditType = EditType.Checkbox
},
new ColumnProperty(nameof(MultiFactorAuthenticationMethodModel.SystemName))
{
Title = T("Admin.Configuration.Authentication.MultiFactorMethods.Configure").Text,
Width = "150",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderCustom("renderColumnConfigure")
},
new ColumnProperty(nameof(MultiFactorAuthenticationMethodModel.SystemName))
{
Title = T("Admin.Common.Edit").Text,
Width = "200",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonsInlineEdit()
}
}
})