@model CampaignModel @inject AdminAreaSettings adminAreaSettings
@await Component.InvokeAsync("AdminWidget", new { widgetZone = AdminWidgetZones.CampaignDetailsTop, additionalData = Model }) @if (Model.Id > 0) {
@T("Admin.Promotions.Campaigns.Warning")
}
@if (adminAreaSettings.UseRichEditorInMessageTemplates) { //we use rich editor with BODY tag supported //it could be a better practice to implement one more editor (similar to RichEditor.cshtml) //with "enableFullPage" property set to "true". but we do not want to duplicate source code //that's why we use this workaround //we store a value into "ViewData" and then use it in the RichEditor.cshtml file ViewData["nop.RichEditor.EnableFullPage"] = true;
} else { }
@T("Admin.Common.Show")
@Model.AllowedTokens
@await Component.InvokeAsync("AdminWidget", new { widgetZone = AdminWidgetZones.CampaignDetailsBottom, additionalData = Model })