public ChildMenuItem(string text, string url, ACLOption aclOption = null, SubMenu subMenu = null) { _aclOption = aclOption; _subMenu = subMenu; Url = url; Text = text; }
private static SubMenu GetChildren() { var userAdminMenuACL = new UserAdminMenuACL(); return(new SubMenu { new ChildMenuItem("Users", "/Admin/User", ACLOption.Create(userAdminMenuACL, UserAdminMenuACL.Users)), new ChildMenuItem("Roles", "/Admin/Role", ACLOption.Create(userAdminMenuACL, UserAdminMenuACL.Roles)), new ChildMenuItem("Third Party Auth", "/Admin/ThirdPartyAuth", ACLOption.Create(userAdminMenuACL, UserAdminMenuACL.ThirdPartyAuth)), new ChildMenuItem("User Subscription Reports ", "/Admin/UserSubscriptionReports", ACLOption.Create(userAdminMenuACL, UserAdminMenuACL.UserSubscriptionReports)) }); }
private static SubMenu GetChildren() { var systemAdminMenuACL = new SystemAdminMenuACL(); return(new SubMenu { new ChildMenuItem("Settings", "#", subMenu: new SubMenu { new ChildMenuItem("Site Settings", "/Admin/Settings", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.SiteSettings)), new ChildMenuItem("System Settings", "/Admin/SystemSettings", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.SiteSettings)), new ChildMenuItem("Filesystem Settings", "/Admin/Settings/FileSystem", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.FileSystemSettings)), new ChildMenuItem("ACL", "/Admin/ACL", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.ACL)) }), new ChildMenuItem("Import/Export Documents", "/Admin/ImportExport/Documents", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.ImportExport)), new ChildMenuItem("Message Templates", "/Admin/MessageTemplate", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.MessageTemplates)), new ChildMenuItem("Page Templates", "/Admin/PageTemplate", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.PageTemplates)), new ChildMenuItem("Page Defaults", "/Admin/PageDefaults", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.UrlGenerators)), new ChildMenuItem("Sites", "/Admin/Sites", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.Sites)), new ChildMenuItem("Resources", "/Admin/Resource", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.Resources)), new ChildMenuItem("Logs", "/Admin/Log", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.Logs)), new ChildMenuItem("Batches", "/Admin/Batch", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.Batch)), new ChildMenuItem("Tasks", "/Admin/Task", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.Tasks)), new ChildMenuItem("Indexes", "/Admin/Indexes", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.Indices)), new ChildMenuItem("Message Queue", "/Admin/MessageQueue", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.MessageQueue)), new ChildMenuItem("Notifications", "/Admin/Notification", ACLOption.Create(systemAdminMenuACL, SystemAdminMenuACL.Notifications)), new ChildMenuItem("Clear Caches", "/Admin/ClearCaches"), new ChildMenuItem("About", "/Admin/About") }); }