Webiant Logo Webiant Logo
  1. No results found.

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

AdminRequests.cshtml

@using Nop.Plugin.Misc.RFQ.Models.Admin
@model RequestQuoteSearchModel

@{
    Layout = "_AdminLayout";
    //page title
    ViewBag.PageTitle = T("Plugins.Misc.RFQ.RequestsQuote").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName(RfqDefaults.RequestsAdminMenuSystemName);
}

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

@T("Plugins.Misc.RFQ.RequestsQuote")

@await Html.PartialAsync("Table", new DataTablesModel { Name = "requests-grid", UrlRead = new DataUrl("RequestList", "RfqAdmin", null), SearchButtonId = "search-log", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new(nameof(Model.CreatedOnFrom)), new(nameof(Model.CreatedOnTo)), new(nameof(Model.CustomerEmail)), new(nameof(Model.RequestQuoteStatus)) }, ColumnCollection = new List { new(nameof(RequestQuoteModel.Id)) { IsMasterCheckBox = true, Render = new RenderCheckBox("checkbox_log"), ClassName = NopColumnClassDefaults.CenterAll, Width = "50" }, new(nameof(RequestQuoteModel.CreatedOnUtc)) { Title = T("Plugins.Misc.RFQ.Fields.RequestQuote.CreatedOn").Text, Width = "200", Render = new RenderDate() }, new(nameof(RequestQuoteModel.Status)) { Title = T("Plugins.Misc.RFQ.Fields.RequestQuote.Status").Text, Encode = false, Width = "200", }, new(nameof(RequestQuoteModel.CustomerEmail)) { Title = T("Plugins.Misc.RFQ.Fields.CustomerEmail").Text, Encode = true, Width = "200", }, new(nameof(RequestQuoteModel.CustomerNotes)) { Title = T("Plugins.Misc.RFQ.Fields.CustomerNotes").Text, Encode = true }, new(nameof(RequestQuoteModel.Id)) { Title = T("Admin.Common.View").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonView(new DataUrl("~/Admin/RfqAdmin/AdminRequest")) } } })