代码拉取完成,页面将自动刷新
同步操作将从 糊里糊涂1/nop42formysql 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
@model CampaignSearchModel
@{
//page title
ViewBag.Title = T("Admin.Promotions.Campaigns").Text;
//active menu item (system name)
Html.SetActiveMenuItemSystemName("Campaigns");
}
@{
const string hideSearchBlockAttributeName = "CampaignPage.HideSearchBlock";
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}
<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Promotions.Campaigns")
</h1>
<div class="pull-right">
<a href="@Url.Action("Create")" class="btn bg-blue">
<i class="fa fa-plus-square"></i>
@T("Admin.Common.AddNew")
</a>
@await Component.InvokeAsync("AdminWidget", new { widgetZone = AdminWidgetZones.CampaignListButtons })
</div>
</div>
<div class="content">
<div class="form-horizontal">
<div class="panel-group">
@*hide the entire search block if no elements are displayed*@
<div class="panel panel-default panel-search" @(Model.HideStoresList ? Html.Raw("style=\"display:none\"") : null)>
<div class="panel-body">
<div class="row search-row @(!hideSearchBlock ? "opened" : "")" data-hideAttribute="@hideSearchBlockAttributeName">
<div class="search-text">@T("Admin.Common.Search")</div>
<div class="icon-search"><i class="fa fa-search" aria-hidden="true"></i></div>
<div class="icon-collapse"><i class="fa fa-angle-down" aria-hidden="true"></i></div>
</div>
<div class="search-body @(hideSearchBlock ? "closed" : "")">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<div class="col-md-4">
<nop-label asp-for="StoreId" />
</div>
<div class="col-md-8">
<nop-select asp-for="StoreId" asp-items="Model.AvailableStores" />
</div>
</div>
<div class="form-group">
<div class="col-md-8 col-md-offset-4">
<button type="button" id="search-campaigns" class="btn btn-primary btn-search">
<i class="fa fa-search"></i>
@T("Admin.Common.Search")
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-body">
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "campaigns-grid",
UrlRead = new DataUrl("List", "Campaign", null),
SearchButtonId = "search-campaigns",
Length = Model.PageSize,
LengthMenu = Model.AvailablePageSizes,
Filters = new List<FilterParameter>
{
new FilterParameter(nameof(Model.StoreId))
},
ColumnCollection = new List<ColumnProperty>
{
new ColumnProperty(nameof(CampaignModel.Name))
{
Title = T("Admin.Promotions.Campaigns.Fields.Name").Text
},
new ColumnProperty(nameof(CampaignModel.CreatedOn))
{
Title = T("Admin.Promotions.Campaigns.Fields.CreatedOn").Text,
Width = "200",
Render = new RenderDate()
},
new ColumnProperty(nameof(CampaignModel.DontSendBeforeDate))
{
Title = T("Admin.Promotions.Campaigns.Fields.DontSendBeforeDate").Text,
Width = "200",
Render = new RenderDate()
},
new ColumnProperty(nameof(CampaignModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "100",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonEdit(new DataUrl("Edit"))
}
}
})
</div>
</div>
</div>
</div>
</div>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。