Webiant Logo Webiant Logo
  1. No results found.

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

_CreateOrUpdate.AppliedToManufacturers.cshtml

@model DiscountModel

@if (Model.Id > 0)
{
    
@await Html.PartialAsync("Table", new DataTablesModel { Name = "manufacturers-grid", UrlRead = new DataUrl("ManufacturerList", "Discount", new RouteValueDictionary { [nameof(Model.DiscountManufacturerSearchModel.DiscountId)] = Model.DiscountManufacturerSearchModel.DiscountId }), UrlDelete = new DataUrl("ManufacturerDelete", "Discount", new RouteValueDictionary { [nameof(Model.DiscountManufacturerSearchModel.DiscountId)] = Model.DiscountManufacturerSearchModel.DiscountId }), BindColumnNameActionDelete = nameof(DiscountManufacturerModel.ManufacturerId), Length = Model.DiscountManufacturerSearchModel.PageSize, LengthMenu = Model.DiscountManufacturerSearchModel.AvailablePageSizes, ColumnCollection = new List { new ColumnProperty(nameof(DiscountManufacturerModel.ManufacturerName)) { Title = T("Admin.Promotions.Discounts.AppliedToManufacturers.Manufacturer").Text }, new ColumnProperty(nameof(DiscountManufacturerModel.ManufacturerId)) { Title = T("Admin.Common.View").Text, Width = "150", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonView(new DataUrl("~/Admin/Manufacturer/Edit/")) }, new ColumnProperty(nameof(DiscountManufacturerModel.ManufacturerId)) { Title = T("Admin.Common.Delete").Text, Width = "150", Render = new RenderButtonRemove(T("Admin.Common.Delete").Text), ClassName = NopColumnClassDefaults.Button } } })
} else {
@T("Admin.Promotions.Discounts.AppliedToManufacturers.SaveBeforeEdit")
}