Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model AffiliateSearchModel

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

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

@T("Admin.Affiliates")

@T("Admin.Common.AddNew") @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.AffiliateListButtons, additionalData = Model })

@T("Admin.Affiliates.Description")

@await Html.PartialAsync("Table", new DataTablesModel { Name = "affiliates-grid", UrlRead = new DataUrl("List", "Affiliate", null), SearchButtonId = "search-affiliates", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.SearchFirstName)), new FilterParameter(nameof(Model.SearchLastName)), new FilterParameter(nameof(Model.SearchFriendlyUrlName)), new FilterParameter(nameof(Model.LoadOnlyWithOrders), typeof(bool)), new FilterParameter(nameof(Model.OrdersCreatedFromUtc)), new FilterParameter(nameof(Model.OrdersCreatedToUtc)) }, ColumnCollection = new List { new ColumnProperty($"{nameof(AffiliateModel.Address)}.{nameof(AddressModel.FirstName)}") { Title = T("Admin.Address.Fields.FirstName").Text, Width = "200" }, new ColumnProperty($"{nameof(AffiliateModel.Address)}.{nameof(AddressModel.LastName)}") { Title = T("Admin.Address.Fields.LastName").Text, Width = "200" }, new ColumnProperty(nameof(AffiliateModel.Active)) { Title = T("Admin.Affiliates.Fields.Active").Text, Width = "100", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(AffiliateModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonEdit(new DataUrl("Edit")) } } })