Webiant Logo Webiant Logo
  1. No results found.

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

Warnings.cshtml

@model IList

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

@T("Admin.System.Warnings")

  @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.WarningsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.WarningsTop, additionalData = Model })
@foreach (var warning in Model) { switch (warning.Level) { case SystemWarningLevel.Pass: {

@if (warning.DontEncode) { @Html.Raw(warning.Text) } else { @warning.Text }

} break; case SystemWarningLevel.Recommendation: case SystemWarningLevel.Warning: {

@if (warning.DontEncode) { @Html.Raw(warning.Text) } else { @warning.Text }

} break; case SystemWarningLevel.Fail: {

@if (warning.DontEncode) { @Html.Raw(warning.Text) } else { @warning.Text }

} break; } }
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.WarningsBottom, additionalData = Model })