@T("Admin.Common.Search")
Try your search with a different keyword or use * as a wildcard.
@model BlogCommentSearchModel
@inject IStoreService storeService
@using Nop.Services.Stores
@{
//page title
ViewBag.PageTitle = T("Admin.ContentManagement.Blog.Comments").Text;
//active menu item (system name)
NopHtml.SetActiveMenuItemSystemName("Blog comments");
}
@{
const string hideSearchBlockAttributeName = "BlogCommentsPage.HideSearchBlock";
var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}
@T("Admin.ContentManagement.Blog.Comments")
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.BlogCommentListButtons, additionalData = Model })
@T("Admin.Common.Search")
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "comments-grid",
SearchButtonId = "search-comments",
UrlRead = new DataUrl("Comments", "Blog", new RouteValueDictionary { [nameof(Model.BlogPostId)] = Model.BlogPostId }),
UrlDelete = new DataUrl("CommentDelete", "Blog", null),
UrlUpdate = new DataUrl("CommentUpdate", "Blog", null),
Length = Model.PageSize,
LengthMenu = Model.AvailablePageSizes,
Filters = new List
{
new FilterParameter(nameof(Model.CreatedOnFrom)),
new FilterParameter(nameof(Model.CreatedOnTo)),
new FilterParameter(nameof(Model.SearchText)),
new FilterParameter(nameof(Model.SearchApprovedId))
},
ColumnCollection = new List
{
new ColumnProperty(nameof(BlogCommentModel.Id))
{
IsMasterCheckBox = true,
Render = new RenderCheckBox("checkbox_comments"),
ClassName = NopColumnClassDefaults.CenterAll,
Width = "50"
},
new ColumnProperty(nameof(BlogCommentModel.BlogPostTitle))
{
Title = T("Admin.ContentManagement.Blog.Comments.Fields.BlogPost").Text,
Render = new RenderLink(new DataUrl("~/Admin/Blog/BlogPostEdit/", nameof(BlogCommentModel.BlogPostId)))
},
new ColumnProperty(nameof(BlogCommentModel.StoreName))
{
Title = T("Admin.ContentManagement.Blog.Comments.Fields.StoreName").Text,
Width = "100",
Visible = (await storeService.GetAllStoresAsync()).Count > 1
},
new ColumnProperty(nameof(BlogCommentModel.CustomerInfo))
{
Title = T("Admin.ContentManagement.Blog.Comments.Fields.Customer").Text,
Width = "100",
Render = new RenderLink(new DataUrl("~/Admin/Customer/Edit/", nameof(BlogCommentModel.CustomerId)))
},
new ColumnProperty(nameof(BlogCommentModel.Comment))
{
Title = T("Admin.ContentManagement.Blog.Comments.Fields.Comment").Text,
Width = "300",
Encode = false
},
new ColumnProperty(nameof(BlogCommentModel.IsApproved))
{
Title = T("Admin.ContentManagement.Blog.Comments.Fields.IsApproved").Text,
Width = "80",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean(),
Editable = true,
EditType = EditType.Checkbox
},
new ColumnProperty(nameof(BlogCommentModel.CreatedOn))
{
Title = T("Admin.ContentManagement.Blog.Comments.Fields.CreatedOn").Text,
Width = "150",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderDate()
},
new ColumnProperty(nameof(BlogCommentModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "100",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonsInlineEdit()
},
new ColumnProperty(nameof(BlogCommentModel.Id))
{
Title = T("Admin.Common.Delete").Text,
Width = "100",
Render = new RenderButtonRemove(T("Admin.Common.Delete").Text),
ClassName = NopColumnClassDefaults.Button
}
}
})