Webiant Logo Webiant Logo
  1. No results found.

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

_CreateOrUpdate.cshtml

@model PollModel

@{
    const string hideInfoBlockAttributeName = "PollPage.HideInfoBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName);

    const string hideAnswersBlockAttributeName = "PollPage.HideAnswersBlock";
    var hideAnswersBlock = await genericAttributeService.GetAttributeAsync(customer, hideAnswersBlockAttributeName, defaultValue: true);
}

@await Html.PartialAsync("_CreateOrUpdate.Info", Model) @await Html.PartialAsync("_CreateOrUpdate.Answers", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.PollDetailsBlock, additionalData = Model })