Webiant Logo Webiant Logo
  1. No results found.

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

AllSettings.cshtml

@model SettingSearchModel

@inject IStoreService storeService
@using Nop.Services.Stores

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

@{
    const string hideSearchBlockAttributeName = "AllSettingsPage.HideSearchBlock";
    var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}

@T("Admin.Configuration.Settings.AllSettings")

  @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.AllSettingListButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.AllSettingsTop, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "settings-grid", UrlRead = new DataUrl("AllSettings", "Setting", null), UrlUpdate = new DataUrl("SettingUpdate", "Setting", null), UrlDelete = new DataUrl("SettingDelete", "Setting", null), SearchButtonId = "search-settings", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.SearchSettingName)), new FilterParameter(nameof(Model.SearchSettingValue)) }, ColumnCollection = new List { new ColumnProperty(nameof(SettingModel.Name)) { Title = T("Admin.Configuration.Settings.AllSettings.Fields.Name").Text, Width = "300", Editable = true, EditType = EditType.String }, new ColumnProperty(nameof(SettingModel.Value)) { Title = T("Admin.Configuration.Settings.AllSettings.Fields.Value").Text, Width = "300", Editable = true, EditType = EditType.String }, new ColumnProperty(nameof(SettingModel.Store)) { Title = T("Admin.Configuration.Settings.AllSettings.Fields.StoreName").Text, Width = "200" }, new ColumnProperty(nameof(SettingModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "200", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonsInlineEdit() }, new ColumnProperty(nameof(SettingModel.Id)) { Title = T("Admin.Common.Delete").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonRemove(T("Admin.Common.Delete").Text) } } })
@T("Admin.Common.AddNewRecord")
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.AllSettingsBottom, additionalData = Model })