Webiant Logo Webiant Logo
  1. No results found.

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

SelectCustomerPopup.cshtml

@using Nop.Web.Areas.Admin.Models.Customers
@model Nop.Web.Areas.Admin.Models.Customers.CustomerSearchModel

@{
    Layout = "_AdminPopupLayout";
}

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

@T("Plugins.Misc.RFQ.AdminRequest.Customer.Select.Title")

@{ var gridModel = new DataTablesModel { Name = "customers-grid", UrlRead = new DataUrl("CustomerList", "RfqAdmin", null), SearchButtonId = "search-customers", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new (nameof(Model.SelectedCustomerRoleIds)), new (nameof(Model.SearchEmail)), new (nameof(Model.SearchUsername)), new (nameof(Model.SearchFirstName)), new (nameof(Model.SearchLastName)), new (nameof(Model.SearchDayOfBirth)), new (nameof(Model.SearchMonthOfBirth)), new (nameof(Model.SearchCompany)), new (nameof(Model.SearchRegistrationDateFrom)), new (nameof(Model.SearchRegistrationDateTo)), new (nameof(Model.SearchLastActivityFrom)), new (nameof(Model.SearchLastActivityTo)), new (nameof(Model.SearchPhone)), new (nameof(Model.SearchZipPostalCode)), new (nameof(Model.SearchIpAddress)), } }; gridModel.ColumnCollection.Add(new ColumnProperty(nameof(CustomerModel.Id)) { Title = T("Admin.Common.Select").Text, Render = new RenderCustom("renderColumnSelectCustomer"), ClassName = NopColumnClassDefaults.Button, Width = "50" }); gridModel.ColumnCollection.Add(new ColumnProperty(nameof(CustomerModel.Email)) { Title = T("Admin.Customers.Customers.Fields.Email").Text }); if (Model.AvatarEnabled) { gridModel.ColumnCollection.Add(new ColumnProperty(nameof(CustomerModel.AvatarUrl)) { Title = T("Admin.Customers.Customers.Fields.Avatar").Text, Width = "140", Render = new RenderPicture() }); } if (Model.UsernamesEnabled) { gridModel.ColumnCollection.Add(new ColumnProperty(nameof(CustomerModel.Username)) { Title = T("Admin.Customers.Customers.Fields.Username").Text }); } gridModel.ColumnCollection.Add(new ColumnProperty(nameof(CustomerModel.FullName)) { Title = T("Admin.Customers.Customers.Fields.FullName").Text }); gridModel.ColumnCollection.Add(new ColumnProperty(nameof(CustomerModel.CustomerRoleNames)) { Title = T("Admin.Customers.Customers.Fields.CustomerRoles").Text, Width = "100" }); if (Model.CompanyEnabled) { gridModel.ColumnCollection.Add(new ColumnProperty(nameof(CustomerModel.Company)) { Title = T("Admin.Customers.Customers.Fields.Company").Text }); } if (Model.PhoneEnabled) { gridModel.ColumnCollection.Add(new ColumnProperty(nameof(CustomerModel.Phone)) { Title = T("Admin.Customers.Customers.Fields.Phone").Text }); } } @await Html.PartialAsync("Table", gridModel)