Created AdminContext handling
This commit is contained in:
22
src/HopFrame.Web.Admin/Models/AdminPage.cs
Normal file
22
src/HopFrame.Web.Admin/Models/AdminPage.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace HopFrame.Web.Admin.Models;
|
||||
|
||||
public class AdminPage<TModel> : IAdminPageEntry {
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public AdminPagePermissions Permissions { get; set; }
|
||||
public IList<AdminPageProperty> Properties { get; set; }
|
||||
[JsonIgnore]
|
||||
public Type RepositoryProvider { get; set; }
|
||||
|
||||
public string DefaultSortPropertyName { get; set; }
|
||||
public ListSortDirection DefaultSortDirection { get; set; }
|
||||
|
||||
public bool ShowCreateButton { get; set; } = true;
|
||||
public bool ShowDeleteButton { get; set; } = true;
|
||||
public bool ShowUpdateButton { get; set; } = true;
|
||||
}
|
||||
|
||||
public interface IAdminPageEntry;
|
||||
Reference in New Issue
Block a user