Exemple #1
0
        public TagModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool text = true, bool metadata = true, bool blog = true, bool postsCount = true)
            : base(htmlHelper, isSelected, edit, ContentManagementSectionConstants.TagsController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn)
        {
            if (text)
            {
                Column.For(tm => tm.Text).Named(htmlHelper.T(TagConstants.Fields.Text.Label));
            }

            if (metadata)
            {
                Column.For(tm => GenericHtmlHelper.EditorFor(trap => tm.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (blog)
            {
                Column.For(tm => htmlHelper.LocalizedRouteLinkWithId(tm.BlogName, ContentManagementSectionConstants.BlogsController.Edit.RouteName, tm.BlogId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(TagConstants.Fields.Blog.Label));
            }

            if (posts)
            {
                Column.For(tm => htmlHelper.SmartRouteLink(tm.PostsCount.ToString(), ContentManagementSectionConstants.PostsController.ListByTagId.RouteName, RouteParameter.Add(KnownParameterNames.TagId, tm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(TagConstants.Fields.Posts.Label));
            }
        }
Exemple #2
0
        public QueuedEmailModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool sentTries = true, bool queuedEmailPriority = true, bool sentOn = true, bool from = true, bool fromName = true, bool to = true, bool toName = true, bool cc = true, bool bcc = true, bool subject = true, bool emailAccount = true)
            : base(htmlHelper, isSelected, false, null, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn)
        {
            if (sentTries)
            {
                Column.For(qem => qem.SentTries).Named(htmlHelper.T(QueuedEmailConstants.Fields.SentTries.Label));
            }

            if (queuedEmailPriority)
            {
                Column.For(qem => qem.QueuedEmailPriority).Named(htmlHelper.T(QueuedEmailConstants.Fields.QueuedEmailPriority.Label));
            }

            if (sentOn)
            {
                Column.For(om => GenericHtmlHelper.EditorFor(trap => om.SentDate)).Named(htmlHelper.T(QueuedEmailConstants.Fields.SentDateUtc.Label));
            }

            if (from)
            {
                Column.For(qem => qem.From).Named(htmlHelper.T(QueuedEmailConstants.Fields.From.Label));
            }

            if (fromName)
            {
                Column.For(qem => qem.FromName).Named(htmlHelper.T(QueuedEmailConstants.Fields.FromName.Label));
            }

            if (to)
            {
                Column.For(qem => qem.To).Named(htmlHelper.T(QueuedEmailConstants.Fields.To.Label));
            }

            if (toName)
            {
                Column.For(qem => qem.ToName).Named(htmlHelper.T(QueuedEmailConstants.Fields.ToName.Label));
            }

            if (cc)
            {
                Column.For(qem => qem.Cc).Named(htmlHelper.T(QueuedEmailConstants.Fields.Cc.Label));
            }

            if (bcc)
            {
                Column.For(qem => qem.Bcc).Named(htmlHelper.T(QueuedEmailConstants.Fields.Bcc.Label));
            }

            if (subject)
            {
                Column.For(qem => qem.Subject).Named(htmlHelper.T(QueuedEmailConstants.Fields.Subject.Label));
            }

            if (emailAccount)
            {
                Column.For(qem => htmlHelper.LocalizedRouteLinkWithId(qem.EmailAccountDisplayName, SystematicSectionConstants.EmailAccountsController.Edit.RouteName, qem.EmailAccountId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(QueuedEmailConstants.Fields.EmailAccount.Label));
            }
        }
        public PhotoModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool ipAddress = true, bool creator = true, bool allowComments = true, bool comments = true, bool likes = true, bool shares = true, bool title = true, bool description = true, bool metadata = true, bool photoAlbum = true, bool picture = true) : base(htmlHelper, isSelected, edit, FundamentalsSecctionConstants.PhotosController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn, ipAddress, creator, allowComments, commentsCount, likesCount, shares)
        {
            if (title)
            {
                Column.For(pm => pm.Title).Named(htmlHelper.T(PhotoConstants.Fields.Title.Label));
            }

            if (description)
            {
                Column.For(pm => pm.Description).Named(htmlHelper.T(PhotoConstants.Fields.Description.Label));
            }

            if (metadata)
            {
                Column.For(pm => GenericHtmlHelper.EditorFor(trap => pm.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (photoAlbum)
            {
                Column.For(pm => htmlHelper.LocalizedRouteLinkWithId(pm.PhotoAlbumTitle, FundamentalsSecctionConstants.PhotoAlbumsController.Edit.RouteName, pm.PhotoAlbumId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PhotoConstants.Fields.PhotoAlbum.Label));
            }

            if (picture)
            {
                Column.For(pm => htmlHelper.LocalizedRouteLinkWithId(pm.PictureFileName, FileManagementSectionConstants.PicturesController.Edit.RouteName, pm.PictureId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PhotoConstants.Fields.Picture.Label));
            }
        }
        public FriendRequestModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool isAccepted = true, bool beignFriendOn = true, bool message = true, bool @from = true, bool to = true)
            : base(htmlHelper, isSelected, false, null, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn)
        {
            if (isAccepted)
            {
                Column.For(frm => frm.IsAccepted).Named(htmlHelper.T(FriendRequestConstants.Fields.IsAccepted.Label));
            }

            if (beignFriendOn)
            {
                Column.For(frm => GenericHtmlHelper.EditorFor(trap => frm.BeignFriendOn)).Named(htmlHelper.T(FriendRequestConstants.Fields.BeignFriendOnUtc.Label));
            }

            if (message)
            {
                Column.For(frm => frm.Message).Named(htmlHelper.T(FriendRequestConstants.Fields.Message.Label));
            }

            if (@from)
            {
                Column.For(frm => htmlHelper.LocalizedRouteLinkWithId(frm.FromFullName, SecuritySectionConstants.UsersController.Edit.RouteName, frm.FromId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(FriendRequestConstants.Fields.From.Label));
            }

            if (to)
            {
                Column.For(frm => htmlHelper.LocalizedRouteLinkWithId(frm.ToFullName, SecuritySectionConstants.UsersController.Edit.RouteName, frm.ToId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(FriendRequestConstants.Fields.To.Label));
            }
        }
        public PostModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool ipAddress = true, bool creator = true, bool allowComments = true, bool comments = true, bool likes = true, bool shares = true, bool title = true, bool body = true, bool metadata = true, bool blog = true, bool tags = true) : base(htmlHelper, isSelected, edit, ContentManagementSectionConstants.PostsController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn, ipAddress, creator, allowComments, commentsCount, likesCount, shares)
        {
            if (title)
            {
                Column.For(pm => pm.Title).Named(htmlHelper.T(PostConstants.Fields.Title.Label));
            }

            if (body)
            {
                Column.For(pm => pm.Body).Named(htmlHelper.T(PostConstants.Fields.Body.Label));
            }

            if (metadata)
            {
                Column.For(pm => GenericHtmlHelper.EditorFor(trap => pm.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (blog)
            {
                Column.For(pm => htmlHelper.LocalizedRouteLinkWithId(pm.BlogName, ContentManagementSectionConstants.BlogsController.Edit.RouteName, pm.BlogId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PostConstants.Fields.Blog.Label));
            }

            if (tags)
            {
                Column.For(pm => htmlHelper.SmartRouteLink(pm.TagsCount.ToString(), ContentManagementSectionConstants.TagsController.ListByPostId.RouteName, RouteParameter.Add(KnownParameterNames.PostId, pm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PostConstants.Fields.Tags.Label));
            }
        }
Exemple #6
0
        public ToDoModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, string editRouteName = null, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool toDoStatus = true, bool dueDateOn = true, bool title = true, bool description = true, bool perfotdmer = true)
            : base(htmlHelper, isSelected, edit, MiscellaneousSectionConstants.ToDosController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn)
        {
            if (toDoStatus)
            {
                Column.For(tdm => tdm.ToDoStatus).Named(htmlHelper.T(ToDoConstants.Fields.ToDoStatus.Label));
            }

            if (dueDateOn)
            {
                Column.For(tdm => GenericHtmlHelper.EditorFor(trap => tdm.DueDate)).Named(htmlHelper.T(ToDoConstants.Fields.DueDateUtc.Label));
            }

            if (title)
            {
                Column.For(tdm => tdm.Title).Named(htmlHelper.T(ToDoConstants.Fields.Title.Label));
            }

            if (description)
            {
                Column.For(tdm => tdm.Description).Named(htmlHelper.T(ToDoConstants.Fields.Description.Label));
            }

            if (perfotdmer)
            {
                Column.For(tdm => htmlHelper.LocalizedRouteLinkWithId(tdm.PerformerFullName, SecuritySectionConstants.UsersController.Edit.RouteName, tdm.PerformerId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(ToDoConstants.Fields.Performer.Label));
            }
        }
        public NewsModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool ipAddress = true, bool creator = true, bool allowComments = true, bool comments = true, bool likes = true, bool shares = true, bool title = true, bool @short = true, bool full = true, bool metadata = true, bool category = true) : base(htmlHelper, isSelected, edit, ContentManagementSectionConstants.ContentManagementController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn, ipAddress, creator, allowComments, commentsCount, likesCount, shares)
        {
            if (title)
            {
                Column.For(nm => nm.Title).Named(htmlHelper.T(NewsConstants.Fields.Title.Label));
            }

            if (@short)
            {
                Column.For(nm => nm.Short).Named(htmlHelper.T(NewsConstants.Fields.Short.Label));
            }

            if (full)
            {
                Column.For(nm => nm.Full).Named(htmlHelper.T(NewsConstants.Fields.Full.Label));
            }

            if (metadata)
            {
                Column.For(nm => GenericHtmlHelper.EditorFor(trap => nm.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (category)
            {
                Column.For(nm => htmlHelper.LocalizedRouteLinkWithId(nm.CategoryTitle, ContentManagementSectionConstants.CategoriesController.Edit.RouteName, nm.CategoryId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(NewsConstants.Fields.Category.Label));
            }
        }
        public GroupModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool title = true, bool metadata = true, bool parent = true, bool childs = true, bool pages = true)
            : base(htmlHelper, isSelected, edit, ContentManagementSectionConstants.GroupsController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn)
        {
            if (title)
            {
                Column.For(gm => gm.Title).Named(htmlHelper.T(GroupConstants.Fields.Title.Label));
            }

            if (metadata)
            {
                Column.For(gm => GenericHtmlHelper.EditorFor(trap => gm.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (parent)
            {
                Column.For(gm => htmlHelper.LocalizedRouteLinkWithId(gm.ParentTitle, ContentManagementSectionConstants.GroupsController.Edit.RouteName, gm.ParentId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(GroupConstants.Fields.Parent.Label));
            }

            if (childs)
            {
                Column.For(cm => htmlHelper.LocalizedRouteLink(cm.ChildsCount.ToString(), ContentManagementSectionConstants.CategoriesController.ListByParentId.RouteName, RouteParameter.Add(KnownParameterNames.ParentId, cm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(GroupConstants.Fields.Childs.Label));
            }

            if (pages)
            {
                Column.For(cm => htmlHelper.LocalizedRouteLink(cm.ContentManagementCount.ToString(), ContentManagementSectionConstants.ContentManagementController.ListByGroupId.RouteName, RouteParameter.Add(KnownParameterNames.GroupId, cm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(GroupConstants.Fields.ContentManagement.Label));
            }
        }
Exemple #9
0
        public PhotoAlbumModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool ipAddress = true, bool creator = true, bool allowComments = true, bool comments = true, bool likes = true, bool shares = true, bool title = true, bool description = true, bool metadata = true, bool artist = true, bool photos = true) : base(htmlHelper, isSelected, edit, FundamentalsSecctionConstants.PhotoAlbumsController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn, ipAddress, creator, allowComments, commentsCount, likesCount, shares)
        {
            if (title)
            {
                Column.For(pam => pam.Title).Named(htmlHelper.T(PhotoAlbumConstants.Fields.Title.Label));
            }

            if (description)
            {
                Column.For(pam => pam.Description).Named(htmlHelper.T(PhotoAlbumConstants.Fields.Description.Label));
            }

            if (metadata)
            {
                Column.For(pam => GenericHtmlHelper.EditorFor(trap => pam.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (artist)
            {
                Column.For(pam => htmlHelper.LocalizedRouteLinkWithId(pam.ArtistFullName, FundamentalsSecctionConstants.FundamentalsController.Edit.RouteName, pam.ArtistId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PhotoAlbumConstants.Fields.Artist.Label));
            }

            if (photos)
            {
                Column.For(pam => htmlHelper.LocalizedRouteLink(pam.PhotosCount.ToString(), FundamentalsSecctionConstants.PhotosController.ListByPhotoAlbumId.RouteName, RouteParameter.Add(KnownParameterNames.PhotoAlbumId, pam.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PhotoAlbumConstants.Fields.Photos.Label));
            }
        }
        public PublisherModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool ipAddress = true, bool creator = true, bool allowComments = true, bool comments = true, bool likes = true, bool shares = true, bool name = true, bool ceo = true, bool registrationNumber = true, bool email = true, bool history = false, bool metadata = true, bool website = true, bool logo = true, bool tracks = true) : base(htmlHelper, isSelected, edit, FundamentalsSecctionConstants.FundamentalsController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn, ipAddress, creator, allowComments, commentsCount, likesCount, shares)
        {
            if (name)
            {
                Column.For(pm => pm.Name).Named(htmlHelper.T(PublisherConstants.Fields.Name.Label));
            }

            if (ceo)
            {
                Column.For(pm => pm.Ceo).Named(htmlHelper.T(PublisherConstants.Fields.Ceo.Label));
            }

            if (registrationNumber)
            {
                Column.For(pm => pm.RegisterationNumber).Named(htmlHelper.T(PublisherConstants.Fields.RegisterationNumber.Label));
            }

            if (email)
            {
                Column.For(pm => pm.Email).Named(htmlHelper.T(PublisherConstants.Fields.Email.Label));
            }

            if (history)
            {
                Column.For(pm => pm.History).Named(htmlHelper.T(PublisherConstants.Fields.History.Label));
            }

            if (metadata)
            {
                Column.For(pm => GenericHtmlHelper.EditorFor(trap => pm.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (website)
            {
                Column.For(pm => htmlHelper.LocalizedRouteLinkWithId(pm.WebsiteTargetUrl, MiscellaneousSectionConstants.RedirectorsController.Edit.RouteName, pm.WebsiteId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PublisherConstants.Fields.Website.Label));
            }

            if (logo)
            {
                Column.For(pm => htmlHelper.LocalizedRouteLinkWithId(pm.LogoFileName, FileManagementSectionConstants.PicturesController.Edit.RouteName, pm.LogoId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PublisherConstants.Fields.Logo.Label));
            }

            if (tracks)
            {
                Column.For(pm => htmlHelper.LocalizedRouteLink(pm.FundamentalsCount.ToString(), FundamentalsSecctionConstants.FundamentalsController.ListByPublisherId.RouteName, RouteParameter.Add(KnownParameterNames.PublisherId, pm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PublisherConstants.Fields.Fundamentals.Label));
            }
        }
        public PollModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool ipAddress = true, bool creator = true, bool allowComments = true, bool comments = true, bool likes = true, bool shares = true, bool showOnHomePage = true, bool isMultiSelection = true, bool startDate = true, bool endDate = true, bool systemKeyword = true, bool title = true, bool description = true, bool metadata = true, bool pollAnswers = true)
            : base(htmlHelper, isSelected, edit, ContentManagementSectionConstants.PollsController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn, ipAddress, creator, allowComments, commentsCount, likesCount, shares)
        {
            if (showOnHomePage)
            {
                Column.For(pm => pm.ShowOnHomePage).Named(htmlHelper.T(PollConstants.Fields.ShowOnHomePage.Label));
            }

            if (isMultiSelection)
            {
                Column.For(pm => pm.IsMultiSelection).Named(htmlHelper.T(PollConstants.Fields.IsMultiSelection.Label));
            }

            if (startDate)
            {
                Column.For(pm => GenericHtmlHelper.EditorFor(trap => pm.StartDate)).Named(htmlHelper.T(PollConstants.Fields.StartDateOnUtc.Label));
            }

            if (endDate)
            {
                Column.For(pm => GenericHtmlHelper.EditorFor(trap => pm.EndDate)).Named(htmlHelper.T(PollConstants.Fields.EndDateOnUtc.Label));
            }

            if (systemKeyword)
            {
                Column.For(pm => pm.SystematicKeyword).Named(htmlHelper.T(PollConstants.Fields.SystematicKeyword.Label));
            }

            if (title)
            {
                Column.For(pm => pm.Title).Named(htmlHelper.T(PollConstants.Fields.Title.Label));
            }

            if (description)
            {
                Column.For(pm => pm.Description).Named(htmlHelper.T(PollConstants.Fields.Description.Label));
            }

            if (metadata)
            {
                Column.For(pm => GenericHtmlHelper.EditorFor(trap => pm.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (pollAnswers)
            {
                Column.For(cm => htmlHelper.SmartRouteLink(cm.PollAnswersCount.ToString(), ContentManagementSectionConstants.PollAnswersController.ListByPollId.RouteName, RouteParameter.Add(KnownParameterNames.PollId, cm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PollConstants.Fields.PollAnswers.Label));
            }
        }
        public BannedIpModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, string editRouteName = null, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool expiresOn = true, bool ipAdrress = true, bool reason = true)
            : base(htmlHelper, isSelected, edit, SecuritySectionConstants.BannedIpsController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn)
        {
            if (expiresOn)
            {
                Column.For(bim => GenericHtmlHelper.EditorFor(trap => bim.ExpireDate)).Named(htmlHelper.T(BannedIpConstants.Fields.ExpireDateUtc.Label));
            }

            if (ipAdrress)
            {
                Column.For(bim => bim.IpAdrress).Named(htmlHelper.T(BannedIpConstants.Fields.IpAdrress.Label));
            }

            if (reason)
            {
                Column.For(bim => bim.Reason).Named(htmlHelper.T(BannedIpConstants.Fields.Reason.Label));
            }
        }
        public ShareModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool ipAddress = true, bool creator = true, bool ownerId = true, bool sharedOn = true, bool sharer = true) : base(htmlHelper, isSelected, edit, CommonSectionConstants.SharesController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn, ipAddress, creator)
        {
            if (ownerId)
            {
                Column.For(sm => sm.OwnerId).Named(htmlHelper.T(ShareConstants.Fields.OwnerId.Label));
            }

            if (sharedOn)
            {
                Column.For(sm => GenericHtmlHelper.EditorFor(trap => sm.ShareDate)).Named(htmlHelper.T(ShareConstants.Fields.ShareDateUtc.Label));
            }

            if (sharer)
            {
                Column.For(sm => htmlHelper.RouteLinkWithId(sm.UserFullName, SecuritySectionConstants.UsersController.Edit.RouteName, sm.UserId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(ShareConstants.Fields.User.Label));
            }
        }
        public OrderModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, string editRouteName = null, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool orderStatus = true, bool paidDateOn = true, bool orderedBy = true, bool orderLines = true, bool orderNotes = true, bool transactionDebugs = true)
            : base(htmlHelper, isSelected, edit, editRouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn)
        {
            if (orderStatus)
            {
                Column.For(om => om.OrderStatus).Named(htmlHelper.T(OrderConstants.Fields.OrderStatus.Label));
            }

            if (paidDateOn)
            {
                Column.For(om => GenericHtmlHelper.EditorFor(trap => om.PaidDate)).Named(htmlHelper.T(OrderConstants.Fields.PaidDateUtc.Label));
            }

            if (orderedBy)
            {
                Column.For(om => htmlHelper.LocalizedRouteLinkWithId(om.UserFullName, SecuritySectionConstants.UsersController.Edit.RouteName, om.UserId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(OrderConstants.Fields.User.Label));
            }

            if (orderNotes)
            {
                Column.For(om => htmlHelper.LocalizedRouteLink(om.OrderNotesCount.ToString(), BillingSectionConstants.OrderNotesController.ListByOrderId.RouteName, RouteParameter.Add(KnownParameterNames.OrderId, om.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(OrderConstants.Fields.OrderNotes.Label));
            }

            if (orderLines)
            {
                Column.For(om => htmlHelper.LocalizedRouteLink(om.OrderLinesCount.ToString(), BillingSectionConstants.OrderLinesController.ListByOrderId.RouteName, RouteParameter.Add(KnownParameterNames.OrderId, om.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(OrderConstants.Fields.OrderLines.Label));
            }

            if (transactionDebugs)
            {
                Column.For(om => htmlHelper.LocalizedRouteLink(om.TransactionDebugsCount.ToString(), BillingSectionConstants.TransactionDebugsController.ListByOrderId.RouteName, RouteParameter.Add(KnownParameterNames.OrderId, om.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(OrderConstants.Fields.TransactionDebugs.Label));
            }
        }
        public PageModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool title = true, bool body = true, bool metadata = true, bool group = true) : base(htmlHelper, isSelected, edit, ContentManagementSectionConstants.ContentManagementController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn)
        {
            if (title)
            {
                Column.For(pm => pm.Title).Named(htmlHelper.T(PageConstants.Fields.Title.Label));
            }

            if (body)
            {
                Column.For(pm => pm.Body).Named(htmlHelper.T(PageConstants.Fields.Body.Label));
            }

            if (metadata)
            {
                Column.For(pm => GenericHtmlHelper.EditorFor(trap => pm.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (group)
            {
                Column.For(pm => htmlHelper.LocalizedRouteLinkWithId(pm.GroupTitle, ContentManagementSectionConstants.CategoriesController.Edit.RouteName, pm.GroupId, null, new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(PageConstants.Fields.Group.Label));
            }
        }
        public UserModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool isSystemAccount = true, bool isBuyingBlocked = true, bool passwordFormat = true, bool lastLoginDateOn = true, bool lastActivityDateOn = true, bool systemName = true, bool userName = true, bool email = true, bool adminComment = true, bool lastIpAddress = true, bool roles = true, bool activities = true, bool logs = true, bool toDos = true, bool tickets = true, bool ticketResponses = true, bool incomingFriendRequests = true, bool outgoingFriendRequestsCount = true, bool blogsCount = true, bool ordersCount = true)
            : base(htmlHelper, isSelected, edit, SecuritySectionConstants.UsersController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn)
        {
            if (isSystemAccount)
            {
                Column.For(um => um.IsSystemAccount).Named(htmlHelper.T(UserConstants.Fields.IsSystemAccount.Label));
            }

            if (isBuyingBlocked)
            {
                Column.For(um => um.IsBuyingBlocked).Named(htmlHelper.T(UserConstants.Fields.IsBuyingBlocked.Label));
            }

            if (passwordFormat)
            {
                Column.For(um => um.PasswordFormat).Named(htmlHelper.T(UserConstants.Fields.PasswordFormat.Label));
            }

            if (lastLoginDateOn)
            {
                Column.For(um => GenericHtmlHelper.EditorFor(trap => um.LastLoginDate)).Named(htmlHelper.T(UserConstants.Fields.LastLoginDateUtc.Label));
            }

            if (lastActivityDateOn)
            {
                Column.For(um => GenericHtmlHelper.EditorFor(trap => um.LastActivityDate)).Named(htmlHelper.T(UserConstants.Fields.LastActivityDateUtc.Label));
            }

            if (systemName)
            {
                Column.For(um => um.SystematicName).Named(htmlHelper.T(UserConstants.Fields.SystematicName.Label));
            }

            if (userName)
            {
                Column.For(um => um.UserName).Named(htmlHelper.T(UserConstants.Fields.UserName.Label));
            }

            if (email)
            {
                Column.For(um => um.Email).Named(htmlHelper.T(UserConstants.Fields.Email.Label));
            }

            if (adminComment)
            {
                Column.For(um => um.AdminComment).Named(htmlHelper.T(UserConstants.Fields.AdminComment.Label));
            }

            if (lastIpAddress)
            {
                Column.For(um => um.LastIpAddress).Named(htmlHelper.T(UserConstants.Fields.LastIpAddress.Label));
            }

            if (roles)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.RolesCount.ToString(), SecuritySectionConstants.RolesController.ListByUserId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.Roles.Label));
            }

            if (activities)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.ActivitiesCount.ToString(), SecuritySectionConstants.UsersController.ListByUserId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.Activities.Label));
            }

            if (logs)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.LogsCount.ToString(), SecuritySectionConstants.UsersController.ListByUserId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.Logs.Label));
            }

            if (toDos)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.ToDosCount.ToString(), SecuritySectionConstants.UsersController.ListByUserId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.ToDos.Label));
            }

            if (tickets)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.TicketsCount.ToString(), SecuritySectionConstants.UsersController.ListByUserId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.Tickets.Label));
            }

            if (ticketResponses)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.TicketResponsesCount.ToString(), SecuritySectionConstants.UsersController.ListByUserId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.Responses.Label));
            }

            if (incomingFriendRequests)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.IncomingFriendRequestsCount.ToString(), SecuritySectionConstants.UsersController.ListByUserId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.IncomingFriendRequests.Label));
            }

            if (outgoingFriendRequests)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.OutgoingFriendRequestsCount.ToString(), SecuritySectionConstants.UsersController.ListByToId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.OutgoingFriendRequests.Label));
            }

            if (blogs)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.BlogsCount.ToString(), ContentManagementSectionConstants.BlogsController.ListByUserId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.Blogs.Label));
            }

            if (orders)
            {
                Column.For(um => htmlHelper.LocalizedRouteLink(um.BillingCount.ToString(), BillingSectionConstants.BillingController.ListByOrdererId.RouteName, RouteParameter.Add(KnownParameterNames.UserId, um.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(UserConstants.Fields.Billing.Label));
            }
        }
        public TrackModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished = true, bool isDeleted = true, bool displayOrder = true, bool createdOn = true, bool lastModifiedOn = true, bool ipAddress = true, bool creator = true, bool allowComments = true, bool comments = true, bool likes = true, bool shares = true, bool isVideo = true, bool trackNumber = true, bool releasedOn = true, bool title = true, bool description = true, bool metadata = true, bool genre = true, bool publisher = true, bool album = true, bool singers = true,
                              bool composers = true, bool arrangementers = true, bool songwriters      = true, bool covers      = true, bool downloads = true) :
            base(htmlHelper, isSelected, edit, FundamentalsSecctionConstants.FundamentalsController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn, ipAddress, creator, allowComments, commentsCount, likesCount, shares)
        {
            if (isVideo)
            {
                Column.For(tm => tm.IsVideo).Named(htmlHelper.T(TrackConstants.Fields.IsVideo.Label));
            }

            if (trackNumber)
            {
                Column.For(tm => tm.TrackNumber).Named(htmlHelper.T(TrackConstants.Fields.TrackNumber.Label));
            }

            if (releasedOn)
            {
                Column.For(tm => GenericHtmlHelper.EditorFor(trap => tm.ReleaseDate)).Named(htmlHelper.T(TrackConstants.Fields.ReleaseDateUtc.Label));
            }

            if (title)
            {
                Column.For(tm => tm.Title).Named(htmlHelper.T(TrackConstants.Fields.Title.Label));
            }

            if (description)
            {
                Column.For(tm => tm.Description).Named(htmlHelper.T(TrackConstants.Fields.Description.Label));
            }

            if (metadata)
            {
                Column.For(tm => GenericHtmlHelper.EditorFor(trap => tm.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (singers)
            {
                Column.For(tm => htmlHelper.LocalizedRouteLink(tm.SingersCount.ToString(), FundamentalsSecctionConstants.FundamentalsController.ListByTrackId.RouteName, RouteParameter.Add(KnownParameterNames.TrackId, tm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(TrackConstants.Fields.Singers.Label));
            }

            if (composers)
            {
                Column.For(tm => htmlHelper.LocalizedRouteLink(tm.ComposersCount.ToString(), FundamentalsSecctionConstants.FundamentalsController.ListByTrackId.RouteName, RouteParameter.Add(KnownParameterNames.TrackId, tm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(TrackConstants.Fields.Composers.Label));
            }

            if (arrangementers)
            {
                Column.For(tm => htmlHelper.LocalizedRouteLink(tm.ArrangementersCount.ToString(), FundamentalsSecctionConstants.FundamentalsController.ListByTrackId.RouteName, RouteParameter.Add(KnownParameterNames.TrackId, tm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(TrackConstants.Fields.Arrangementers.Label));
            }

            if (songwriters)
            {
                Column.For(tm => htmlHelper.LocalizedRouteLink(tm.SongwritersCount.ToString(), FundamentalsSecctionConstants.FundamentalsController.ListByTrackId.RouteName, RouteParameter.Add(KnownParameterNames.TrackId, tm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(TrackConstants.Fields.Songwriters.Label));
            }

            if (covers)
            {
                Column.For(tm => htmlHelper.LocalizedRouteLink(tm.CoversCount.ToString(), FileManagementSectionConstants.PicturesController.ListByTrackId.RouteName, RouteParameter.Add(KnownParameterNames.TrackId, tm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(TrackConstants.Fields.Covers.Label));
            }

            if (downloads)
            {
                Column.For(tm => htmlHelper.LocalizedRouteLink(tm.DownloadsCount.ToString(), FileManagementSectionConstants.DownloadsController.ListByTrackId.RouteName, RouteParameter.Add(KnownParameterNames.TrackId, tm.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(TrackConstants.Fields.Downloads.Label));
            }
        }
        public ArtistModelGrid(HtmlHelper htmlHelper, bool isSelected = true, bool edit = true, bool id = true, bool isPublished    = true, bool isDeleted      = true, bool displayOrder      = true, bool createdOn = true, bool lastModifiedOn = true, bool ipAddress = true, bool creator = true, bool allowComments = true, bool comments = true, bool likes = true, bool shares = true, bool birthDateOn = true, bool fullName = true, bool alternativeName = true, bool homeTown = true, bool biography = true, bool metadata = true, bool facebookTargetUrl = true,
                               bool avatar = true, bool photoAlbums = true, bool singedTracks           = true, bool composedTracks = true, bool arrangedTracks = true, bool songwrittenTracks = true) :
            base(htmlHelper, isSelected, edit, FundamentalsSecctionConstants.FundamentalsController.Edit.RouteName, id, isPublished, isDeleted, displayOrder, createdOn, lastModifiedOn, ipAddress, creator, allowComments, commentsCount, likesCount, shares)
        {
            if (birthDateOn)
            {
                Column.For(am => GenericHtmlHelper.EditorFor(trap => am.BirthDate)).Named(htmlHelper.T(ArtistConstants.Fields.BirthDateUtc.Label));
            }

            if (fullName)
            {
                Column.For(am => am.FullName).Named(htmlHelper.T(ArtistConstants.Fields.FullName.Label));
            }

            if (alternativeName)
            {
                Column.For(am => am.AlternativeName).Named(htmlHelper.T(ArtistConstants.Fields.AlternativeName.Label));
            }

            if (homeTown)
            {
                Column.For(am => am.HomeTown).Named(htmlHelper.T(ArtistConstants.Fields.HomeTown.Label));
            }

            if (biography)
            {
                Column.For(am => am.Biography).Named(htmlHelper.T(ArtistConstants.Fields.Biography.Label));
            }

            if (metadata)
            {
                Column.For(am => GenericHtmlHelper.EditorFor(trap => am.Metadata)).Named(htmlHelper.T(CommonConstants.Fields.Metadata.Label));
            }

            if (photoAlbums)
            {
                Column.For(am => htmlHelper.LocalizedRouteLink(am.PhotoAlbumsCount.ToString(), FundamentalsSecctionConstants.PhotoAlbumsController.ListByArtistId.RouteName, RouteParameter.Add(KnownParameterNames.ArtistId, am.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(ArtistConstants.Fields.Albums.Label));
            }

            if (singedTracks)
            {
                Column.For(am => htmlHelper.LocalizedRouteLink(am.SingedTracksCount.ToString(), FundamentalsSecctionConstants.FundamentalsController.ListByArtistId.RouteName, RouteParameter.Add(KnownParameterNames.ArtistId, am.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(ArtistConstants.Fields.SingedTracks.Label));
            }

            if (composedTracks)
            {
                Column.For(am => htmlHelper.LocalizedRouteLink(am.ComposedTracksCount.ToString(), FundamentalsSecctionConstants.FundamentalsController.ListByArtistId.RouteName, RouteParameter.Add(KnownParameterNames.ArtistId, am.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(ArtistConstants.Fields.ComposedTracks.Label));
            }

            if (arrangedTracks)
            {
                Column.For(am => htmlHelper.LocalizedRouteLink(am.ArrangedTracksCount.ToString(), FundamentalsSecctionConstants.FundamentalsController.ListByArtistId.RouteName, RouteParameter.Add(KnownParameterNames.ArtistId, am.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(ArtistConstants.Fields.ArrangedTracks.Label));
            }

            if (songwrittenTracks)
            {
                Column.For(am => htmlHelper.LocalizedRouteLink(am.SongwrittenTracksCount.ToString(), FundamentalsSecctionConstants.FundamentalsController.ListByArtistId.RouteName, RouteParameter.Add(KnownParameterNames.ArtistId, am.Id), new {
                    @class = "btn secondary"
                }, null, null, false, null)).Named(htmlHelper.T(ArtistConstants.Fields.SongwrittenTracks.Label));
            }
        }