edit, remove + toggle page modules

This commit is contained in:
2020-08-20 14:35:08 +02:00
parent 5319516922
commit 4abe35d422
19 changed files with 348 additions and 40 deletions
+9 -1
View File
@@ -4,7 +4,6 @@ namespace zero.Web.Models
{
public class EditModel : EditModel<object> { }
public class EditModel<T>
{
/// <summary>
@@ -12,6 +11,15 @@ namespace zero.Web.Models
/// </summary>
public T Entity { get; set; }
/// <summary>
/// Meta data
/// </summary>
public EditMetaModel Meta { get; set; } = new EditMetaModel();
}
public class EditMetaModel
{
/// <summary>
/// Whether an entity of this type can be created
/// </summary>
+16
View File
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using zero.Core.Entities;
namespace zero.Web.Models
{
public class PageEditModel<T> : EditModel<T> where T : IPage
{
public PageType PageType { get; set; }
public ListResult<Revision> Revisions { get; set; }
}
}