btcpayserver/BTCPayServer/Views/Stores/SetupWallet.cshtml
d11n 3c0292f074
Wallet: Signing UI improvements (#2559)
* Refactoring to generalize wizard layout

* Wallet: Add intermediate signing options view

* Update BTCPayServer/Views/Wallets/WalletSigningOptions.cshtml

Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com>

* Skip signing options for hot wallets

* Update signing options wordings, add PSBT doc link

* Fix test

* Remove form route params

* Use decode command for PSBT

Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com>
2021-06-14 14:06:56 +09:00

52 lines
2 KiB
Text

@model WalletSetupViewModel
@{
Layout = "_LayoutWalletSetup";
ViewData.SetActivePageAndTitle(StoreNavPages.Wallet, $"Setup {Model.CryptoCode} Wallet", Context.GetStoreData().StoreName);
}
@section Navbar {
@if (string.IsNullOrWhiteSpace(Model.DerivationScheme)) {
<a asp-controller="Stores" asp-action="UpdateStore" asp-route-storeId="@Model.StoreId">
<vc:icon symbol="back"/>
</a>
} else {
<a asp-controller="Stores" asp-action="ModifyWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode">
<vc:icon symbol="back"/>
</a>
}
}
<h1 class="text-center">Let's get started</h1>
<br>
<div class="mt-5">
<h3 class="my-4">I have a wallet</h3>
<div class="list-group">
<a asp-controller="Stores" asp-action="ImportWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" id="ImportWalletOptionsLink" class="list-group-item list-group-item-action">
<div class="image">
<vc:icon symbol="existing-wallet"/>
</div>
<div class="content">
<h4>Connect an existing wallet</h4>
<p class="mb-0 text-secondary">Import an existing hardware or software wallet</p>
</div>
<vc:icon symbol="caret-right" />
</a>
</div>
</div>
<br>
<div class="mt-5">
<h3 class="my-4">I don't have a wallet</h3>
<div class="list-group">
<a asp-controller="Stores" asp-action="GenerateWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" id="GenerateWalletLink" class="list-group-item list-group-item-action">
<div class="image">
<vc:icon symbol="new-wallet"/>
</div>
<div class="content">
<h4>Create a new wallet</h4>
<p class="mb-0 text-secondary">Generate a brand-new wallet to use</p>
</div>
<vc:icon symbol="caret-right"/>
</a>
</div>
</div>