@T("Admin.Common.Search")
Try your search with a different keyword or use * as a wildcard.
@model TopicSearchModel
@inject Nop.Services.Topics.ITopicService topicService
@using Nop.Web.Framework.Models.AdminAreaTour
@{
//page title
ViewBag.PageTitle = T("Admin.ContentManagement.Topics").Text;
//tour step
ViewBag.TourStep = TourStep.TopicList;
//active menu item (system name)
NopHtml.SetActiveMenuItemSystemName("Topics");
string editQueryString = string.Empty;
var showTour = ViewBag.ShowTour ?? false;
if (showTour)
{
editQueryString = "?showtour=true";
}
const string hideSearchBlockAttributeName = "TopicsPage.HideSearchBlock";
var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}
@await Html.PartialAsync("_AdminTour")
@T("Admin.ContentManagement.Topics")
@T("Admin.Common.AddNew")
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.TopicListButtons, additionalData = Model })
@T("Admin.Common.Search")
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "topics-grid",
RowIdBasedOnField = nameof(TopicModel.TopicName),
UrlRead = new DataUrl("List", "Topic", null),
SearchButtonId = "search-topics",
Length = Model.PageSize,
LengthMenu = Model.AvailablePageSizes,
Filters = new List
{
new FilterParameter(nameof(Model.SearchKeywords)),
new FilterParameter(nameof(Model.SearchStoreId))
},
ColumnCollection = new List
{
new ColumnProperty(nameof(TopicModel.TopicName))
{
Title = T("Admin.ContentManagement.Topics.Fields.TopicName").Text
},
new ColumnProperty(nameof(TopicModel.Published))
{
Title = T("Admin.ContentManagement.Topics.Fields.Published").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(TopicModel.IsPasswordProtected))
{
Title = T("Admin.ContentManagement.Topics.Fields.IsPasswordProtected").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(TopicModel.IncludeInSitemap))
{
Title = T("Admin.ContentManagement.Topics.Fields.IncludeInSitemap").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(TopicModel.IncludeInTopMenu))
{
Title = T("Admin.ContentManagement.Topics.Fields.IncludeInTopMenu").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(TopicModel.IncludeInFooterColumn1))
{
Title = T("Admin.ContentManagement.Topics.Fields.IncludeInFooterColumn1").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll + " column-footer-column1",
Render = new RenderBoolean()
},
new ColumnProperty(nameof(TopicModel.IncludeInFooterColumn2))
{
Title = T("Admin.ContentManagement.Topics.Fields.IncludeInFooterColumn2").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(TopicModel.IncludeInFooterColumn3))
{
Title = T("Admin.ContentManagement.Topics.Fields.IncludeInFooterColumn3").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(TopicModel.DisplayOrder))
{
Title = T("Admin.ContentManagement.Topics.Fields.DisplayOrder").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll
},
new ColumnProperty(nameof(TopicModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "100",
ClassName = NopColumnClassDefaults.Button + " column-edit",
Render = new RenderCustom("renderColumnEdit")
}
}
})