Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model CurrencySearchModel

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

@T("Admin.Configuration.Currencies")

@T("Admin.Configuration.Currencies.GetLiveRates") @T("Admin.Common.AddNew") @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.CurrencyListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "currencies-grid", UrlRead = new DataUrl("ListGrid", "Currency", null), Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(nameof(CurrencyModel.Name)) { Title = T("Admin.Configuration.Currencies.Fields.Name").Text }, new ColumnProperty(nameof(CurrencyModel.CurrencyCode)) { Title = T("Admin.Configuration.Currencies.Fields.CurrencyCode").Text, Width = "100" }, new ColumnProperty(nameof(CurrencyModel.Rate)) { Title = T("Admin.Configuration.Currencies.Fields.Rate").Text, Width = "80" }, new ColumnProperty(nameof(CurrencyModel.IsPrimaryExchangeRateCurrency)) { Title = T("Admin.Configuration.Currencies.Fields.IsPrimaryExchangeRateCurrency").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(CurrencyModel.Id)) { Title = T("Admin.Configuration.Currencies.Fields.MarkAsPrimaryExchangeRateCurrency").Text, ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderButtonCustom(NopButtonClassDefaults.Olive, T("Admin.Configuration.Currencies.Fields.MarkAsPrimaryExchangeRateCurrency").Text) { OnClickFunctionName = "markAsPrimaryExchangeRateCurrency" } }, new ColumnProperty(nameof(CurrencyModel.IsPrimaryStoreCurrency)) { Title = T("Admin.Configuration.Currencies.Fields.IsPrimaryStoreCurrency").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(CurrencyModel.Id)) { Title = T("Admin.Configuration.Currencies.Fields.MarkAsPrimaryStoreCurrency").Text, ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderButtonCustom(NopButtonClassDefaults.Olive, T("Admin.Configuration.Currencies.Fields.MarkAsPrimaryStoreCurrency").Text) { OnClickFunctionName = "markAsPrimaryStoreCurrency" } }, new ColumnProperty(nameof(CurrencyModel.DisplayOrder)) { Title = T("Admin.Configuration.Currencies.Fields.DisplayOrder").Text, Width = "50", ClassName = NopColumnClassDefaults.CenterAll }, new ColumnProperty(nameof(CurrencyModel.Published)) { Title = T("Admin.Configuration.Currencies.Fields.Published").Text, Width = "50", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(CurrencyModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "80", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonEdit(new DataUrl("Edit")) } } })
@if (Model.ExchangeRateProviderModel.ExchangeRates?.Any() ?? false) {
@T("Admin.Configuration.Currencies.LiveRates")
@T("Admin.Configuration.Currencies.ApplyRate.All") @await Html.PartialAsync("Table", new DataTablesModel { Name = "rate-grid", Data = "currencyrates_source", ServerSide = false, Paging = false, Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(nameof(CurrencyModel.CurrencyCode)) { Title = T("Admin.Configuration.Currencies.Fields.CurrencyCode").Text, Width = "300" }, new ColumnProperty(nameof(CurrencyModel.Rate)) { Title = T("Admin.Configuration.Currencies.Fields.Rate").Text, Width = "300" }, new ColumnProperty(nameof(CurrencyModel.CurrencyCode)) { Title = T("Admin.Configuration.Currencies.ApplyRate").Text, Width = "200", ClassName = NopColumnClassDefaults.Button, Render = new RenderCustom("renderColumnApplyRate") } } })
}