Webiant Logo Webiant Logo
  1. No results found.

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

Warehouses.cshtml

@model WarehouseSearchModel

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

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

@T("Admin.Configuration.Shipping.Warehouses")

@T("Admin.Common.AddNew") @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.WarehouseListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "warehouse-grid", UrlRead = new DataUrl("Warehouses", "Shipping", null), SearchButtonId = "search-warehouse", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.SearchName)) }, ColumnCollection = new List { new ColumnProperty(nameof(WarehouseModel.Name)) { Title = T("Admin.Configuration.Shipping.Warehouses.Fields.Name").Text }, new ColumnProperty(nameof(WarehouseModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonEdit(new DataUrl("EditWarehouse")) } } })