2022-07-04 06:20:08 +02:00
|
|
|
@using BTCPayServer.Controllers
|
2022-02-17 17:58:56 +09:00
|
|
|
@model WalletPSBTCombineViewModel
|
2019-05-12 13:13:52 +09:00
|
|
|
@{
|
2021-12-31 08:36:38 +01:00
|
|
|
var walletId = Context.GetRouteValue("walletId").ToString();
|
2022-07-04 06:20:08 +02:00
|
|
|
var cancelUrl = Model.ReturnUrl ?? Url.Action(nameof(UIWalletsController.WalletTransactions), new { walletId });
|
|
|
|
var backUrl = Model.BackUrl != null ? $"{Model.BackUrl}?returnUrl={Model.ReturnUrl}" : null;
|
2021-07-27 17:01:00 +02:00
|
|
|
Layout = "_LayoutWizard";
|
2021-12-31 08:36:38 +01:00
|
|
|
ViewData.SetActivePage(WalletsNavPages.PSBT, "Combine PSBT", walletId);
|
2019-05-12 13:13:52 +09:00
|
|
|
}
|
|
|
|
|
2021-07-27 17:01:00 +02:00
|
|
|
@section Navbar {
|
2022-07-04 06:20:08 +02:00
|
|
|
@if (backUrl != null)
|
|
|
|
{
|
|
|
|
<a href="@backUrl" id="GoBack">
|
|
|
|
<vc:icon symbol="back" />
|
|
|
|
</a>
|
|
|
|
}
|
|
|
|
<a href="@cancelUrl" id="CancelWizard" class="cancel">
|
2021-07-27 17:01:00 +02:00
|
|
|
<vc:icon symbol="close" />
|
|
|
|
</a>
|
|
|
|
}
|
|
|
|
|
|
|
|
<header class="text-center">
|
2021-12-16 11:17:02 +01:00
|
|
|
<h1>@ViewData["Title"]</h1>
|
2021-07-27 17:01:00 +02:00
|
|
|
</header>
|
2021-04-08 15:32:42 +02:00
|
|
|
|
2022-02-17 17:58:56 +09:00
|
|
|
<form class="form-group" method="post" asp-action="WalletPSBTCombine" asp-route-walletId="@Context.GetRouteValue("walletId")" enctype="multipart/form-data">
|
2021-07-27 17:01:00 +02:00
|
|
|
<input type="hidden" asp-for="OtherPSBT"/>
|
2022-07-04 06:20:08 +02:00
|
|
|
<input type="hidden" asp-for="ReturnUrl" />
|
|
|
|
<input type="hidden" asp-for="BackUrl" />
|
2021-07-27 17:01:00 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="PSBT" class="form-label"></label>
|
|
|
|
<textarea class="form-control" rows="5" asp-for="PSBT"></textarea>
|
|
|
|
<span asp-validation-for="PSBT" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="UploadedPSBTFile" class="form-label"></label>
|
|
|
|
<input type="file" class="form-control" asp-for="UploadedPSBTFile">
|
2019-05-12 13:13:52 +09:00
|
|
|
</div>
|
2022-02-17 17:58:56 +09:00
|
|
|
<button id="Submit" type="submit" class="btn btn-primary">Combine</button>
|
2021-07-27 17:01:00 +02:00
|
|
|
</form>
|