mirror of https://github.com/abpframework/abp.git
4 changed files with 115 additions and 1 deletions
@ -0,0 +1,29 @@ |
|||||
|
@page |
||||
|
@using Microsoft.AspNetCore.Mvc.Localization |
||||
|
@using Volo.CmsKit.Admin.Web.Pages |
||||
|
@using Volo.CmsKit.Localization |
||||
|
@using Volo.CmsKit.Admin.Web.Pages.CmsKit.Contents; |
||||
|
@inject IHtmlLocalizer<CmsKitResource> L |
||||
|
|
||||
|
|
||||
|
@model AddWidgetModal; |
||||
|
@{ |
||||
|
Layout = null; |
||||
|
} |
||||
|
|
||||
|
@section scripts |
||||
|
{ |
||||
|
<abp-script src="/Pages/CmsKit/Contents/addWidgetModal.js" /> |
||||
|
} |
||||
|
|
||||
|
<abp-modal size="Large" id="addWidgetModal"> |
||||
|
<abp-modal-header title="@L["Edit"].Value"></abp-modal-header> |
||||
|
|
||||
|
<abp-modal-body> |
||||
|
<div class="mb-3"> |
||||
|
<small class="text-muted">Text</small> |
||||
|
<input id="textId" type="text" /> |
||||
|
<button class="btn btn-primary float-end" type="submit" id="poll-change-text-button">@L["Save"]</button> |
||||
|
</div> |
||||
|
</abp-modal-body> |
||||
|
</abp-modal> |
||||
@ -0,0 +1,30 @@ |
|||||
|
using System; |
||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
||||
|
|
||||
|
namespace Volo.CmsKit.Admin.Web.Pages.CmsKit.Contents; |
||||
|
|
||||
|
public class AddWidgetModal : AbpPageModel |
||||
|
{ |
||||
|
[BindProperty(SupportsGet = true)] |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
[BindProperty(SupportsGet = true)] |
||||
|
public string Text { get; set; } |
||||
|
|
||||
|
|
||||
|
public AddWidgetModal() |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
public async Task OnGetAsync() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public async Task OnPostAsync() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
var abp = abp || {}; |
||||
|
$(function () { |
||||
|
alert("hello guys1"); |
||||
|
abp.modals.addWidgetModal = function () { |
||||
|
|
||||
|
var initModal = function () { |
||||
|
alert("hello guys"); |
||||
|
}; |
||||
|
|
||||
|
return { |
||||
|
initModal: initModal |
||||
|
}; |
||||
|
}; |
||||
|
}); |
||||
Loading…
Reference in new issue