mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-31 20:54:31 +01:00
* Improve and unify page headers * Altcoin test fixes * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Fix missing store name in pairing view * Fix CanUsePairing test * Bump header navigation font size * Use partial tag instead of Html.PartialAsync in views As suggested by @nicolasdorier. These are equivalent, see details [here](https://docs.microsoft.com/en-us/aspnet/core/mvc/views/partial?view=aspnetcore-3.1#partial-tag-helper). * Fix docs link As in #2432. * Update BTCPayServer/Views/Wallets/SignWithSeed.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletSendVault.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletTransactions.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com>
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
@model PostRedirectViewModel
|
|
@{
|
|
Layout = null;
|
|
|
|
var routeData = Context.GetRouteData();
|
|
var routeParams = new Dictionary<string, string>();
|
|
if (routeData != null)
|
|
{
|
|
routeParams["walletId"] = routeData.Values["walletId"]?.ToString();
|
|
}
|
|
var action = Model.FormUrl ?? Url.Action(Model.AspAction, Model.AspController, routeParams);
|
|
}
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<partial name="Header" />
|
|
<title>Post Redirect</title>
|
|
</head>
|
|
<body>
|
|
<form method="post" id="postform" action="@action">
|
|
@Html.AntiForgeryToken()
|
|
@foreach (var o in Model.Parameters)
|
|
{
|
|
<input type="hidden" name="@o.Key" value="@o.Value"/>
|
|
}
|
|
<noscript>
|
|
<div class="modal-dialog modal-dialog-centered min-vh-100">
|
|
<div class="modal-content">
|
|
<div class="modal-body text-center my-3">
|
|
<p>
|
|
This redirection page is supposed to be submitted automatically.
|
|
<br>
|
|
Since you have not enabled JavaScript, please submit manually.
|
|
</p>
|
|
<button class="btn btn-primary" type="submit">Submit</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</noscript>
|
|
</form>
|
|
<script type="text/javascript">
|
|
document.forms.item(0).submit();
|
|
</script>
|
|
</body>
|
|
</html>
|