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.
79 lines
2.6 KiB
79 lines
2.6 KiB
@page
|
|
|
|
@using Volo.CmsKit.Admin.Web.Pages.CmsKit.Contents.Components.EntityContentEditor
|
|
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Pages.Shared.Components.AbpPageToolbar
|
|
@using Volo.CmsKit.Admin.Web.Pages
|
|
@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.CmsKit.Blogs
|
|
@using Volo.Abp.AspNetCore.Mvc.UI.Packages.Uppy
|
|
@using Volo.CmsKit.Admin.Web.Bundles
|
|
|
|
@inherits CmsKitAdminPageBase
|
|
|
|
@model CreateModel
|
|
|
|
@{
|
|
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/create.js" />
|
|
<abp-script type="typeof(SlugifyScriptContributor)" />
|
|
</abp-script-bundle>
|
|
}
|
|
|
|
@section content_toolbar {
|
|
@await Component.InvokeAsync(typeof(AbpPageToolbarViewComponent), new { pageName = typeof(CreateModel).FullName })
|
|
}
|
|
|
|
<abp-card>
|
|
<abp-card-header title="@L["New"].Value"></abp-card-header>
|
|
<abp-card-body>
|
|
<div class="form-group">
|
|
<label>@L["CoverImage"]</label>
|
|
<input type="file" id="BlogPostCoverImage" class="form-control" />
|
|
</div>
|
|
|
|
<abp-dynamic-form abp-model="ViewModel" asp-page="/CmsKit/BlogPosts/Create" id="form-blog-post-create">
|
|
<div class="form-group">
|
|
<label asp-for="ViewModel.BlogId"></label>
|
|
<select asp-for="ViewModel.BlogId" id="BlogSelectionSelect" class="form-control"></select>
|
|
<span asp-validation-for="ViewModel.BlogId"></span>
|
|
</div>
|
|
|
|
<abp-input asp-for="ViewModel.Title" />
|
|
|
|
<abp-input asp-for="ViewModel.Slug" />
|
|
|
|
@await Component.InvokeAsync(typeof(EntityContentEditorViewComponent), new
|
|
{
|
|
entityType = BlogPostConsts.EntityType,
|
|
displaySubmitButton = false
|
|
})
|
|
|
|
<abp-form-content />
|
|
|
|
</abp-dynamic-form>
|
|
|
|
<div id="blog-post-tags-wrapper">
|
|
|
|
<hr />
|
|
|
|
@await Component.InvokeAsync(typeof(TagEditorViewComponent), new
|
|
{
|
|
entityType = BlogPostConsts.EntityType,
|
|
displaySubmitButton = false
|
|
})
|
|
</div>
|
|
|
|
</abp-card-body>
|
|
<abp-card-footer>
|
|
<abp-button button-type="Primary" type="submit" text="@L["Submit"].Value" id="button-blog-post-create" />
|
|
</abp-card-footer>
|
|
</abp-card>
|
|
|