This commit is contained in:
Paul Schneider 2025-06-29 18:44:35 +01:00
commit 9b7a6c0125
11 changed files with 66 additions and 25 deletions

View file

@ -5,8 +5,8 @@ using Yavsc.Models.Access;
namespace Yavsc.ViewModels.Blog
{
public class BlogPostInputViewModel
{
public class BlogPostBase
{
[StringLength(1024)]
public string? Photo { get; set; }
@ -18,9 +18,10 @@ namespace Yavsc.ViewModels.Blog
public string? Content { get; set; }
[InverseProperty("Target")]
[Display(Name="Liste de contrôle d'accès")]
public virtual List<CircleAuthorizationToBlogPost>? ACL { get; set; }
[Display(Name = "Liste de contrôle d'accès")]
public virtual List<CircleAuthorizationToBlogPost>? ACL { get; set; }
public bool Publish { get; set; }
}
}

View file

@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations;
namespace Yavsc.ViewModels.Blog;
public class BlogPostEditViewModel : BlogPostInputViewModel
public class BlogPostEditViewModel : BlogPostBase
{
[Required]