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 PageModel
@if (Model.IsPasswordProtected)
{
var idSuffix = "";
<script type="application/json" data-grand-vm="passwordPage">@Json.Serialize(new {
route = Url.RouteUrl("PageAuthenticate"),
submitOnEnter = false,
elements = new {
pageId = $"ph-page{idSuffix}",
promptId = $"ph-password{idSuffix}",
titleId = $"ph-title{idSuffix}",
titleSelector = $"#ph-title{idSuffix} h1",
errorId = $"password-error{idSuffix}",
passwordId = $"password{idSuffix}",
pageIdFieldId = Html.IdFor(m => m.Id),
buttonId = "button-password"
},
res = new { warning = Loc["common.warning"].ToString() }
})</script>
<div class="page-password" id="[email protected]">
<form asp-route="PageAuthenticate" method="post">
<input asp-for="Id" type="hidden"/>
<div class="enter-password-title">
@Loc["Page.EnterPassword"]
</div>
<div class="enter-password-form">
@Html.Password("password", null, new { id = "password-" + Model.Id, @class = "form-control mt-1" })
<button class="btn btn-secondary page-password-button mt-1 mb-1" type="button" id="button-password">
@Loc["Page.Button"]
</button>
</div>
<div class="password-error">
<span id="[email protected]"></span>
</div>
</form>
</div>
<div class="page-block" id="[email protected]">
<div class="page-block-title" id="[email protected]">
<h2>@Model.Title</h2>
</div>
<div class="col-12" v-pre>
@Html.Raw(Model.Body)
</div>
</div>
}
else
{
<div class="generalMarginSupporter">
@if (!string.IsNullOrEmpty(Model.Title))
{
<h1 class="generalTitle h2 text-sm-center">@Model.Title</h1>
}
<div class="page-block-body pt-3" v-pre>
@Html.Raw(Model.Body)
</div>
</div>
}