Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model CountrySearchModel

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


@T("Admin.Configuration.Countries")

@T("Admin.Common.AddNew") @T("Admin.Configuration.Countries.ExportToCsv") @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.CountryListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "countries-grid", UrlRead = new DataUrl("CountryList", "Country", null), SearchButtonId = "search-categories", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(nameof(CountryModel.Id)) { IsMasterCheckBox = true, Render = new RenderCheckBox("checkbox_countries"), ClassName = NopColumnClassDefaults.CenterAll, Width = "50" }, new ColumnProperty(nameof(CountryModel.Name)) { Title = T("Admin.Configuration.Countries.Fields.Name").Text }, new ColumnProperty(nameof(CountryModel.AllowsBilling)) { Title = T("Admin.Configuration.Countries.Fields.AllowsBilling").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(CountryModel.AllowsShipping)) { Title = T("Admin.Configuration.Countries.Fields.AllowsShipping").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(CountryModel.TwoLetterIsoCode)) { Title = T("Admin.Configuration.Countries.Fields.TwoLetterIsoCode").Text, Width = "150" }, new ColumnProperty(nameof(CountryModel.ThreeLetterIsoCode)) { Title = T("Admin.Configuration.Countries.Fields.ThreeLetterIsoCode").Text, Width = "150" }, new ColumnProperty(nameof(CountryModel.NumericIsoCode)) { Title = T("Admin.Configuration.Countries.Fields.NumericIsoCode").Text, Width = "120" }, new ColumnProperty(nameof(CountryModel.SubjectToVat)) { Title = T("Admin.Configuration.Countries.Fields.SubjectToVat").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(CountryModel.NumberOfStates)) { Title = T("Admin.Configuration.Countries.Fields.NumberOfStates").Text, Width = "150", ClassName = NopColumnClassDefaults.CenterAll }, new ColumnProperty(nameof(CountryModel.DisplayOrder)) { Title = T("Admin.Configuration.Countries.Fields.DisplayOrder").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll }, new ColumnProperty(nameof(CountryModel.Published)) { Title = T("Admin.Configuration.Countries.Fields.Published").Text, Width = "80", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(CountryModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "50", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonEdit(new DataUrl("Edit")) } } })
@*import states form*@