Skip to content

Instantly share code, notes, and snippets.

Avatar

Johan Petersson JohanPetersson

  • Optimizely
  • Stockholm
View GitHub Profile
@JohanPetersson
JohanPetersson / FormContainerBlock.cshtml
Created Feb 8, 2017
Episerver Forms FormContainerBlock
View FormContainerBlock.cshtml
@using EPiServer.Editor
@using EPiServer.Forms
@using EPiServer.Forms.Configuration
@using EPiServer.Forms.Core
@using EPiServer.Forms.Helpers.Internal
@using EPiServer.Forms.EditView.Internal
@using EPiServer.Forms.Implementation.Elements
@using EPiServer.ServiceLocation
@using EPiServer.Web.Mvc.Html
View gist:6d75e563f23718374c948910b9891c32
if (channel != null)
{
if (channel is EmailNotificationChannel)
{
if (status.HasFlag(NotificationChannelStatus.All))
{
query = query.Where(x =>
x.EmailChannelStatus == NotificationChannelStatus.Displayed.ToString() |
x.EmailChannelStatus == NotificationChannelStatus.New.ToString() |
x.EmailChannelStatus == NotificationChannelStatus.Read.ToString() |