Webiant Logo Webiant Logo
  1. No results found.

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

List.cshtml

@model TemplatesModel

@inject IEventPublisher eventPublisher

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

@{
    const string hideCategoryBlockAttributeName = "Templates.HideCategoryBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideCategoryBlock = await genericAttributeService.GetAttributeAsync(customer, hideCategoryBlockAttributeName);

    const string hideManufacturerBlockAttributeName = "Templates.HideManufacturerBlock";
    var hideManufacturerBlock = await genericAttributeService.GetAttributeAsync(customer, hideManufacturerBlockAttributeName);

    const string hideProductBlockAttributeName = "Templates.HideProductBlock";
    var hideProductBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductBlockAttributeName);

    const string hideTopicBlockAttributeName = "Templates.HideTopicBlock";
    var hideTopicBlock = await genericAttributeService.GetAttributeAsync(customer, hideTopicBlockAttributeName);
}

@T("Admin.System.Templates")

@await Html.PartialAsync("_List.Category", Model) @await Html.PartialAsync("_List.Manufacturer", Model) @await Html.PartialAsync("_List.Product", Model) @await Html.PartialAsync("_List.Topic", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.TemplatesDetailsBlock, additionalData = Model })