Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

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

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

@T("Admin.Vendors")

@T("Admin.Common.AddNew") @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.VendorListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "vendors-grid", UrlRead = new DataUrl("List", "Vendor", null), SearchButtonId = "search-vendors", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.SearchName)), new FilterParameter(nameof(Model.SearchEmail)) }, ColumnCollection = new List { new ColumnProperty(nameof(VendorModel.Name)) { Title = T("Admin.Vendors.Fields.Name").Text, Width = "300" }, new ColumnProperty(nameof(VendorModel.Email)) { Title = T("Admin.Vendors.Fields.Email").Text, Width = "300" }, new ColumnProperty(nameof(VendorModel.Active)) { Title = T("Admin.Vendors.Fields.Active").Text, Width = "50", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(VendorModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "50", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonEdit(new DataUrl("Edit")) } } })