mirror of https://github.com/abpframework/abp.git
5 changed files with 44 additions and 2 deletions
@ -0,0 +1,11 @@ |
|||
@using Microsoft.Extensions.Localization |
|||
@using Volo.CmsKit.Localization |
|||
@using Volo.CmsKit.Web.Pages.CmsKit.Components.Comments |
|||
@inject IStringLocalizer<CmsKitResource> L |
|||
@model CmsKitCommentConfigurationViewModel |
|||
|
|||
<div> |
|||
<abp-input asp-for="EntityType" label="@L["EntityType"]" /> |
|||
<abp-input asp-for="EntityId" label="@L["EntityId"]" /> |
|||
<abp-input asp-for="IsReadOnly" label="@L["IsReadOnly"]" /> |
|||
</div> |
|||
@ -0,0 +1,15 @@ |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp.AspNetCore.Mvc; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Widgets; |
|||
|
|||
namespace Volo.CmsKit.Web.Pages.CmsKit.Components.Comments; |
|||
|
|||
[Widget] |
|||
[ViewComponent(Name = "CmsKitCommentConfiguration")] |
|||
public class CmsKitCommentConfigurationViewComponent : AbpViewComponent |
|||
{ |
|||
public IViewComponentResult Invoke() |
|||
{ |
|||
return View("~/Pages/CmsKit/Components/Comments/CmsKitCommentConfiguration.cshtml", new CmsKitCommentConfigurationViewModel()); |
|||
} |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Volo.CmsKit.Web.Pages.CmsKit.Components.Comments; |
|||
|
|||
public class CmsKitCommentConfigurationViewModel |
|||
{ |
|||
[Required] |
|||
public string EntityType { get; set; } |
|||
|
|||
[Required] |
|||
public string EntityId { get; set; } |
|||
|
|||
[Required] |
|||
public bool IsReadOnly { get; set; } = false; |
|||
} |
|||
Loading…
Reference in new issue