Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

_CreateOrUpdate.Resources.cshtml

@model LanguageModel

    
@if (Model.Id > 0) {
@await Html.PartialAsync("Table", new DataTablesModel { Name = "resources-grid", UrlRead = new DataUrl("Resources", "Language", new RouteValueDictionary { [nameof(Model.LocaleResourceSearchModel.LanguageId)] = Model.Id }), UrlUpdate = new DataUrl("ResourceUpdate", "Language", null), UrlDelete = new DataUrl("ResourceDelete", "Language", null), SearchButtonId = "search-resources", Length = Model.LocaleResourceSearchModel.PageSize, LengthMenu = Model.LocaleResourceSearchModel.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.LocaleResourceSearchModel.SearchResourceName), nameof(LocaleResourceSearchModel)), new FilterParameter(nameof(Model.LocaleResourceSearchModel.SearchResourceValue), nameof(LocaleResourceSearchModel)) }, ColumnCollection = new List { new ColumnProperty(nameof(LocaleResourceModel.ResourceName)) { Title = T("Admin.Configuration.Languages.Resources.Fields.Name").Text, Width = "300", Editable = true, EditType = EditType.String }, new ColumnProperty(nameof(LocaleResourceModel.ResourceValue)) { Title = T("Admin.Configuration.Languages.Resources.Fields.Value").Text, Editable = true, EditType = EditType.String }, new ColumnProperty(nameof(LocaleResourceModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonsInlineEdit() }, new ColumnProperty(nameof(LocaleResourceModel.Id)) { Title = T("Admin.Common.Delete").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonRemove(T("Admin.Common.Delete").Text) } } })
@T("Admin.Common.AddNewRecord")
}