Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model QueuedEmailSearchModel

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

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

@T("Admin.System.QueuedEmails")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.QueuedEmailListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "queuedEmails-grid", UrlRead = new DataUrl("QueuedEmailList", "QueuedEmail", null), SearchButtonId = "search-queuedemails", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.SearchStartDate), typeof(DateTime?)), new FilterParameter(nameof(Model.SearchEndDate), typeof(DateTime?)), new FilterParameter(nameof(Model.SearchFromEmail)), new FilterParameter(nameof(Model.SearchToEmail)), new FilterParameter(nameof(Model.SearchLoadNotSent), typeof(bool)), new FilterParameter(nameof(Model.SearchMaxSentTries)) }, ColumnCollection = new List { new ColumnProperty(nameof(QueuedEmailModel.Id)) { IsMasterCheckBox = true, Render = new RenderCheckBox("checkbox_queuedemails"), ClassName = NopColumnClassDefaults.CenterAll, Width = "50" }, new ColumnProperty(nameof(QueuedEmailModel.Id)) { Title = T("Admin.System.QueuedEmails.Fields.Id").Text, Width = "50", }, new ColumnProperty(nameof(QueuedEmailModel.Subject)) { Title = T("Admin.System.QueuedEmails.Fields.Subject").Text }, new ColumnProperty(nameof(QueuedEmailModel.From)) { Title = T("Admin.System.QueuedEmails.Fields.From").Text, Width = "100", }, new ColumnProperty(nameof(QueuedEmailModel.To)) { Title = T("Admin.System.QueuedEmails.Fields.To").Text, Width = "100", }, new ColumnProperty(nameof(QueuedEmailModel.CreatedOn)) { Title = T("Admin.System.QueuedEmails.Fields.CreatedOn").Text, Width = "150", Render = new RenderDate() }, new ColumnProperty(nameof(QueuedEmailModel.DontSendBeforeDate)) { Title = T("Admin.System.QueuedEmails.Fields.DontSendBeforeDate").Text, Width = "150", Render = new RenderDate() }, new ColumnProperty(nameof(QueuedEmailModel.SentOn)) { Title = T("Admin.System.QueuedEmails.Fields.SentOn").Text, Width = "150", Render = new RenderDate() }, new ColumnProperty(nameof(QueuedEmailModel.PriorityName)) { Title = T("Admin.System.QueuedEmails.Fields.Priority").Text, Width = "120", }, new ColumnProperty(nameof(QueuedEmailModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "50", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonEdit(new DataUrl("Edit")) } } })