Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model GiftCardSearchModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.GiftCards").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Gift cards");
}

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


@T("Admin.GiftCards")

@T("Admin.Common.AddNew") @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.GiftCardListButtons, additionalData = Model })
@await Html.PartialAsync("Table", new DataTablesModel { Name = "giftcards-grid", UrlRead = new DataUrl("GiftCardList", "GiftCard", null), SearchButtonId = "search-giftcards", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.ActivatedId)), new FilterParameter(nameof(Model.CouponCode)), new FilterParameter(nameof(Model.RecipientName)) }, ColumnCollection = new List { new ColumnProperty(nameof(GiftCardModel.AmountStr)) { Title = T("Admin.GiftCards.Fields.Amount").Text }, new ColumnProperty(nameof(GiftCardModel.RemainingAmountStr)) { Title = T("Admin.GiftCards.Fields.RemainingAmount").Text }, new ColumnProperty(nameof(GiftCardModel.GiftCardCouponCode)) { Title = T("Admin.GiftCards.Fields.GiftCardCouponCode").Text }, new ColumnProperty(nameof(GiftCardModel.RecipientName)) { Title = T("Admin.GiftCards.Fields.RecipientName").Text }, new ColumnProperty(nameof(GiftCardModel.IsGiftCardActivated)) { Title = T("Admin.GiftCards.Fields.IsGiftCardActivated").Text, Width = "200", ClassName = NopColumnClassDefaults.CenterAll, Render = new RenderBoolean() }, new ColumnProperty(nameof(GiftCardModel.CreatedOn)) { Title = T("Admin.GiftCards.Fields.CreatedOn").Text, Width = "200", Render = new RenderDate() }, new ColumnProperty(nameof(GiftCardModel.Id)) { Title = T("Admin.Common.Edit").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonEdit(new DataUrl("Edit")) } } })