Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model LanguageSearchModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Configuration.Languages").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Languages");
}


@T("Admin.Configuration.Languages")

@T("Admin.Common.AddNew") @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.LanguageListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "languages-grid", RowIdBasedOnField = nameof(LanguageModel.Name), UrlRead = new DataUrl("List", "Language", null), Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(nameof(LanguageModel.Name)) { Title = T("Admin.Configuration.Languages.Fields.Name").Text }, new ColumnProperty(nameof(LanguageModel.FlagImageFileName)) { Title = T("Admin.Configuration.Languages.Fields.FlagImage").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderPicture(Url.Content("~/images/flags/")) }, new ColumnProperty(nameof(LanguageModel.LanguageCulture)) { Title = T("Admin.Configuration.Languages.Fields.LanguageCulture").Text, Width = "200" }, new ColumnProperty(nameof(LanguageModel.DisplayOrder)) { Title = T("Admin.Configuration.Languages.Fields.DisplayOrder").Text, Width = "150", ClassName = NopColumnClassDefaults.CenterAll }, new ColumnProperty(nameof(LanguageModel.Published)) { Title = T("Admin.Configuration.Languages.Fields.Published").Text, Width = "150", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(LanguageModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonEdit(new DataUrl("Edit")) } } })