2023-02-20 11:35:54 +01:00
|
|
|
@inject BTCPayServer.Services.BTCPayServerEnvironment Env
|
2022-11-25 02:42:55 +01:00
|
|
|
@model BTCPayServer.Forms.Models.FormViewModel
|
|
|
|
@{
|
|
|
|
Layout = null;
|
2023-02-20 11:35:54 +01:00
|
|
|
ViewData["Title"] = Model.FormName;
|
2023-12-01 16:13:44 +01:00
|
|
|
ViewData["StoreBranding"] = Model.StoreBranding;
|
2022-11-25 02:42:55 +01:00
|
|
|
}
|
|
|
|
<!DOCTYPE html>
|
2023-02-20 11:35:54 +01:00
|
|
|
<html lang="en" @(Env.IsDeveloping ? " data-devenv" : "")>
|
2022-11-25 02:42:55 +01:00
|
|
|
<head>
|
2023-02-20 11:35:54 +01:00
|
|
|
<partial name="LayoutHead" />
|
2022-11-25 02:42:55 +01:00
|
|
|
<meta name="robots" content="noindex,nofollow">
|
2023-11-21 10:13:26 +01:00
|
|
|
<style>#FormView { --wrap-max-width: 576px; }</style>
|
2022-11-25 02:42:55 +01:00
|
|
|
</head>
|
2023-01-30 09:23:49 +01:00
|
|
|
<body class="min-vh-100">
|
2023-11-21 10:13:26 +01:00
|
|
|
<div id="FormView" class="public-page-wrap">
|
2023-02-20 11:35:54 +01:00
|
|
|
<partial name="_StatusMessage" model="@(new ViewDataDictionary(ViewData) { { "Margin", "mb-4" } })" />
|
2024-05-09 02:18:02 +02:00
|
|
|
@if (!string.IsNullOrEmpty(Model.StoreName) || !string.IsNullOrEmpty(Model.StoreBranding.LogoUrl))
|
2023-02-20 11:35:54 +01:00
|
|
|
{
|
2023-12-01 16:13:44 +01:00
|
|
|
<partial name="_StoreHeader" model="(Model.StoreName, Model.StoreBranding)" />
|
2023-02-20 11:35:54 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<h1 class="h3 text-center mt-3">@ViewData["Title"]</h1>
|
|
|
|
}
|
2023-11-21 10:13:26 +01:00
|
|
|
<main class="flex-grow-1">
|
2023-02-20 11:35:54 +01:00
|
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
|
|
{
|
2023-12-21 15:43:12 +01:00
|
|
|
<div asp-validation-summary="ModelOnly"></div>
|
2023-02-20 11:35:54 +01:00
|
|
|
}
|
|
|
|
<partial name="_FormTopMessages" model="@Model.Form" />
|
|
|
|
<div class="d-flex flex-column justify-content-center gap-4">
|
2023-11-21 10:13:26 +01:00
|
|
|
<div class="tile">
|
2023-02-20 11:35:54 +01:00
|
|
|
@if (string.IsNullOrEmpty(Model.AspAction))
|
|
|
|
{
|
|
|
|
<form method="post" novalidate="novalidate">
|
2023-02-23 09:52:37 +01:00
|
|
|
<partial name="_FormWrap" model="@Model" />
|
2023-01-30 09:23:49 +01:00
|
|
|
</form>
|
2023-02-20 11:35:54 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<form method="post" asp-action="@Model.AspAction" asp-controller="@Model.AspController" asp-all-route-data="Model.RouteParameters">
|
2023-02-23 09:52:37 +01:00
|
|
|
<partial name="_FormWrap" model="@Model" />
|
2023-02-20 11:35:54 +01:00
|
|
|
</form>
|
|
|
|
}
|
2022-11-25 02:42:55 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-30 09:23:49 +01:00
|
|
|
</main>
|
|
|
|
<footer class="store-footer">
|
2023-03-08 13:39:03 +01:00
|
|
|
<a class="store-powered-by" href="https://btcpayserver.org" target="_blank" rel="noreferrer noopener">
|
2023-01-30 09:23:49 +01:00
|
|
|
Powered by <partial name="_StoreFooterLogo" />
|
|
|
|
</a>
|
|
|
|
</footer>
|
|
|
|
</div>
|
2023-02-20 11:35:54 +01:00
|
|
|
<partial name="LayoutFoot" />
|
|
|
|
<partial name="_ValidationScriptsPartial"/>
|
2022-11-25 02:42:55 +01:00
|
|
|
</body>
|
|
|
|
</html>
|