Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

1.9 KB
Raw Blame
@model KnowledgebaseArticleModel
@{
    //page title
    ViewBag.Title = Loc["Admin.Content.Knowledgebase.KnowgledgebaseArticle.EditKnowgledgebaseArticle"];
}
<form asp-area="@Constants.AreaAdmin" asp-controller="Knowledgebase" asp-action="EditArticle" method="post" id="article-form">

    @* the product edit screen's shell: the article name as the title, Save as the one primary
       action, and Delete in the overflow menu rather than beside Save *@
    <admin-page sticky
                title="@Model.Name"
                icon="bi-chat-square-text"
                meta="@Loc["Admin.Content.Knowledgebase.KnowgledgebaseArticle.EditKnowgledgebaseArticle"]"
                back-url="@Url.Action("List")"
                back-text="@Loc["Admin.Content.Knowledgebase.KnowgledgebaseArticle.BackToList"]">
        <page-actions>
            <button type="button" onclick="window.open('@Url.RouteUrl("KnowledgebaseArticle", new { Model.SeName })','_blank');" class="btn btn-outline-secondary">
                <i class="bi bi-eye"></i> @Loc["Admin.Common.Preview"]
            </button>
            <button class="btn btn-outline-secondary" type="submit" name="save-continue">
                <i class="bi bi-check-circle"></i> @Loc["Admin.Common.SaveContinue"]
            </button>
            <button class="btn btn-primary" type="submit" name="save">
                <i class="bi bi-check-lg"></i> @Loc["Admin.Common.Save"]
            </button>
            <admin-action-menu>
                <admin-action id="knowledgebasearticle-delete" destructive="true" icon="bi-trash"
                              text="@Loc["Admin.Common.Delete"]"/>
            </admin-action-menu>
        </page-actions>

        <partial name="Partials/CreateOrUpdateArticle" model="Model"/>
    </admin-page>
</form>
<admin-delete-confirmation button-id="knowledgebasearticle-delete" action-name="DeleteArticle"/>