Webiant Logo Webiant Logo
  1. No results found.

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

AdminQuotes.cshtml

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

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

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

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

@await Html.PartialAsync("Table", new DataTablesModel { Name = "quotes-grid", UrlRead = new DataUrl("QuoteList", "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.QuoteStatus)) }, ColumnCollection = new List { new(nameof(QuoteModel.Id)) { IsMasterCheckBox = true, Render = new RenderCheckBox("checkbox_log"), ClassName = NopColumnClassDefaults.CenterAll, Width = "50" }, new(nameof(QuoteModel.CreatedOn)) { Title = T("Plugins.Misc.RFQ.Fields.Quote.CreatedOn").Text, Width = "200", Render = new RenderDate() }, new(nameof(QuoteModel.ExpirationDateUtc)) { Title = T("Plugins.Misc.RFQ.Fields.Quote.ExpirationDate").Text, Width = "200", Render = new RenderDate() }, new(nameof(QuoteModel.Status)) { Title = T("Plugins.Misc.RFQ.Fields.Quote.Status").Text, Encode = false, Width = "200", }, new(nameof(QuoteModel.CustomerEmail)) { Title = T("Plugins.Misc.RFQ.Fields.CustomerEmail").Text, Encode = true, Width = "200", }, new(nameof(QuoteModel.Id)) { Title = T("Admin.Common.View").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonView(new DataUrl("~/Admin/RfqAdmin/AdminQuote")) } } })