@T("Admin.Common.Search")
Try your search with a different keyword or use * as a wildcard.
@model DiscountSearchModel
@{
//page title
ViewBag.PageTitle = T("Admin.Promotions.Discounts").Text;
//active menu item (system name)
NopHtml.SetActiveMenuItemSystemName("Discounts");
}
@{
const string hideSearchBlockAttributeName = "DiscountsPage.HideSearchBlock";
var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}
@T("Admin.Promotions.Discounts")
@T("Admin.Common.AddNew")
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.DiscountListButtons, additionalData = Model })
@T("Admin.Common.Search")
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "discounts-grid",
UrlRead = new DataUrl("List", "Discount", null),
SearchButtonId = "search-discounts",
Length = Model.PageSize,
LengthMenu = Model.AvailablePageSizes,
Filters = new List
{
new FilterParameter(nameof(Model.SearchDiscountTypeId)),
new FilterParameter(nameof(Model.SearchDiscountCouponCode)),
new FilterParameter(nameof(Model.SearchDiscountName)),
new FilterParameter(nameof(Model.SearchStartDate), typeof(DateTime?)),
new FilterParameter(nameof(Model.SearchEndDate), typeof(DateTime?)),
new FilterParameter(nameof(Model.IsActiveId))
},
ColumnCollection = new List
{
new ColumnProperty(nameof(DiscountModel.Name))
{
Title = T("Admin.Promotions.Discounts.Fields.Name").Text,
Width = "350"
},
new ColumnProperty(nameof(DiscountModel.DiscountTypeName))
{
Title = T("Admin.Promotions.Discounts.Fields.DiscountType").Text,
Width = "250"
},
new ColumnProperty(nameof(DiscountModel.DiscountAmount))
{
Title = T("Admin.Promotions.Discounts.Fields.Discount").Text,
Width = "200",
Render = new RenderCustom("renderColumnDiscount")
},
new ColumnProperty(nameof(DiscountModel.StartDateUtc))
{
Title = T("Admin.Promotions.Discounts.Fields.StartDate").Text,
Width = "200",
Render = new RenderDate()
},
new ColumnProperty(nameof(DiscountModel.EndDateUtc))
{
Title = T("Admin.Promotions.Discounts.Fields.EndDate").Text,
Width = "200",
Render = new RenderDate()
},
new ColumnProperty(nameof(DiscountModel.TimesUsed))
{
Title = T("Admin.Promotions.Discounts.Fields.TimesUsed").Text,
Width = "200",
ClassName = NopColumnClassDefaults.CenterAll
},
new ColumnProperty(nameof(DiscountModel.IsActive))
{
Title = T("Admin.Promotions.Discounts.Fields.IsActive").Text,
Width = "80",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(DiscountModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "100",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonEdit(new DataUrl("Edit"))
}
}
})