mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.6 KiB
77 lines
2.6 KiB
@page "{Id}"
|
|
|
|
@using Volo.CmsKit.Blogs
|
|
@using Volo.CmsKit.Admin.Web.Pages
|
|
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Pages.Shared.Components.AbpPageToolbar
|
|
@using Volo.CmsKit.Admin.Web.Pages.CmsKit.Contents.Components.EntityContentEditor
|
|
@using Volo.CmsKit.Admin.Web.Menus
|
|
@using Volo.CmsKit.Admin.Web.Pages.CmsKit.BlogPosts
|
|
@using Volo.CmsKit.Admin.Web.Pages.CmsKit.Tags.Components.TagEditor
|
|
@using Volo.Abp.AspNetCore.Mvc.UI.Packages.Uppy
|
|
@using Volo.CmsKit.Admin.Web.Bundles
|
|
|
|
@inherits CmsKitAdminPageBase
|
|
|
|
@model UpdateModel
|
|
|
|
@{
|
|
PageLayout.Content.Title = L["BlogPosts"].Value;
|
|
PageLayout.Content.BreadCrumb.Add(L["Menu:CMS"].Value);
|
|
PageLayout.Content.MenuItemName = CmsKitAdminMenus.BlogPosts.BlogPostsMenu;
|
|
}
|
|
|
|
@section scripts {
|
|
<abp-script-bundle>
|
|
<abp-script type="typeof(UppyScriptContributor)" />
|
|
<abp-script src="/Pages/CmsKit/BlogPosts/update.js" />
|
|
<abp-script type="typeof(SlugifyScriptContributor)" />
|
|
</abp-script-bundle>
|
|
}
|
|
|
|
@section content_toolbar {
|
|
@await Component.InvokeAsync(typeof(AbpPageToolbarViewComponent), new { pageName = typeof(UpdateModel).FullName })
|
|
}
|
|
|
|
<abp-card>
|
|
<abp-card-header title="@L["Update"].Value"></abp-card-header>
|
|
<abp-card-body>
|
|
|
|
<div class="form-group">
|
|
<img height="120" src="/api/cms-kit-admin/blogs/blog-posts/@Model.Id/cover-image" />
|
|
<label>@L["CoverImage"]</label>
|
|
<input type="file" id="BlogPostCoverImage" class="form-control" />
|
|
</div>
|
|
|
|
<abp-dynamic-form abp-model="ViewModel" asp-page="/CmsKit/BlogPosts/Update" id="form-blog-post-update">
|
|
<abp-input asp-for="Id" />
|
|
|
|
<abp-input asp-for="ViewModel.Title" />
|
|
|
|
<abp-input asp-for="ViewModel.Slug" />
|
|
|
|
@await Component.InvokeAsync(typeof(EntityContentEditorViewComponent), new
|
|
{
|
|
entityType = BlogPostConsts.EntityType,
|
|
entityId = Model.Id.ToString(),
|
|
displaySubmitButton = false
|
|
})
|
|
|
|
<abp-form-content />
|
|
</abp-dynamic-form>
|
|
|
|
@if (Model.TagsFeature?.IsEnabled == true)
|
|
{
|
|
<hr />
|
|
|
|
@await Component.InvokeAsync(typeof(TagEditorViewComponent), new
|
|
{
|
|
entityType = BlogPostConsts.EntityType,
|
|
entityId = Model.Id.ToString(),
|
|
displaySubmitButton = false
|
|
})
|
|
}
|
|
</abp-card-body>
|
|
<abp-card-footer>
|
|
<abp-button button-type="Primary" type="submit" text="@L["Submit"].Value" id="button-blog-post-update" />
|
|
</abp-card-footer>
|
|
</abp-card>
|