Edit mode improvements

This commit is contained in:
Shaun Walker
2019-09-05 13:44:27 -04:00
parent 65cb295e05
commit 22420f2b43
18 changed files with 179 additions and 82 deletions

View File

@ -1,4 +1,5 @@
using System;
using Oqtane.Modules;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
@ -18,6 +19,7 @@ namespace Oqtane.Models
[NotMapped]
public string Permissions { get; set; }
// PageModule properties
[NotMapped]
public int PageModuleId { get; set; }
[NotMapped]
@ -30,11 +32,23 @@ namespace Oqtane.Models
public int Order { get; set; }
[NotMapped]
public string ContainerType { get; set; }
// SiteRouter properties
[NotMapped]
public string ModuleType { get; set; }
[NotMapped]
public int PaneModuleIndex { get; set; }
[NotMapped]
public int PaneModuleCount { get; set; }
// IModuleControl properties
[NotMapped]
public SecurityAccessLevel SecurityAccessLevel { get; set; }
[NotMapped]
public string ControlTitle { get; set; }
[NotMapped]
public string Actions { get; set; }
[NotMapped]
public string AdminContainerType { get; set; }
}
}

View File

@ -16,6 +16,7 @@ namespace Oqtane.Models
public string Icon { get; set; }
public string Panes { get; set; }
public bool IsNavigation { get; set; }
public bool EditMode { get; set; }
public string CreatedBy { get; set; }
public DateTime CreatedOn { get; set; }

View File

@ -0,0 +1,11 @@
namespace Oqtane.Modules
{
public enum SecurityAccessLevel
{
Anonymous,
View,
Edit,
Admin,
Host
}
}

View File

@ -19,5 +19,6 @@
public const int ReloadApplication = 3;
public const int ReloadSite = 2;
public const int ReloadPage = 1;
public const int ReloadReset = 0;
}
}