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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
@model MessageTemplateModel
@{
var area = ViewContext.RouteData.Values["area"]?.ToString();
ViewBag.Title = Loc["Admin.Content.MessageTemplates.EditMessageTemplateDetails"];
}
<form asp-area="@area" asp-controller="MessageTemplate" asp-action="Edit" method="post">
@* the product edit screen's shell: the template name as the title, Save as the one primary
action and Delete in the overflow menu. A read-only template (a global one a store owner
opens) has neither - Copy, which makes it the store's own, is then its action. *@
<admin-page sticky
title="@Model.Name"
icon="bi-envelope"
meta="@Loc["Admin.Content.MessageTemplates.EditMessageTemplateDetails"]"
back-url="@Url.Action("List")"
back-text="@Loc["Admin.Content.MessageTemplates.BackToList"]">
<page-actions>
@if (Model.CanCopy)
{
<button type="submit" name="message-template-copy" asp-action="CopyTemplate" class="btn btn-outline-secondary"
data-grand-confirm="@Loc["Admin.Common.AreYouSure"]">
<i class="bi bi-files"></i> @Loc["Admin.Content.MessageTemplates.Copy"]
</button>
}
@if (!Model.IsReadOnly)
{
<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="message-template-delete" destructive="true" icon="bi-trash"
text="@Loc["Admin.Common.Delete"]"/>
</admin-action-menu>
}
<partial name="Partials/WidgetZone.DetailsButtons" model="Model"/>
</page-actions>
<partial name="Partials/CreateOrUpdate" model="Model"/>
</admin-page>
</form>
@if (!Model.IsReadOnly)
{
<admin-delete-confirmation button-id="message-template-delete"/>
}