mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
103 lines
4.8 KiB
Text
103 lines
4.8 KiB
Text
@using NBXplorer.Models
|
||
@model DerivationSchemeViewModel
|
||
@if (Model.CanUseHotWallet)
|
||
{
|
||
ViewData.Add(nameof(Model.CanUseRPCImport), Model.CanUseRPCImport);
|
||
|
||
<partial name="AddDerivationSchemes_NBXWalletGenerate" model="@(new GenerateWalletRequest())"/>
|
||
}
|
||
|
||
<div class="modal fade" id="electrumimport" tabindex="-1" role="dialog" aria-labelledby="electrumimport" aria-hidden="true">
|
||
<div class="modal-dialog modal-lg" role="document">
|
||
<form class="modal-content" method="post" enctype="multipart/form-data">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title" id="electrumimportLabel">Import Wallet from file</h5>
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<p>Import your air-gapped hardware wallet by exporting a file and uploading it here.</p>
|
||
<table class="table table-sm table-responsive-md">
|
||
<thead>
|
||
<tr>
|
||
<th>Wallet</th>
|
||
<th>Instructions</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Cobo Vault</td>
|
||
<td><kbd>Settings ❯ Watch-Only Wallet ❯ BTCPay ❯ Export Wallet</kbd></td>
|
||
</tr>
|
||
<tr>
|
||
<td>ColdCard</td>
|
||
<td>
|
||
<kbd>Advanced ❯ MicroSD Card ❯ Electrum Wallet</kbd> or
|
||
<kbd>Advanced ❯ MicroSD Card ❯ Wasabi Wallet</kbd>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Electrum</td>
|
||
<td><kbd>File ❯ Save backup</kbd></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Wasabi</td>
|
||
<td><kbd>Tools ❯ Wallet Manager ❯ Open Wallets Folder</kbd></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<div class="form-group">
|
||
<label asp-for="WalletFile"></label>
|
||
<input type="file" class="form-control-file" asp-for="WalletFile" required>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
||
<button type="submit" class="btn btn-primary">Submit</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
|
||
<template id="btcpayservervault_template">
|
||
<div class="modal-dialog" role="document">
|
||
<form class="modal-content" form method="post" enctype="multipart/form-data">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title" id="exampleModalLabel">Import from BTCPayServer Vault</h5>
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<p>You may import from BTCPayServer Vault.</p>
|
||
<div class="form-group">
|
||
<div id="vaultPlaceholder"></div>
|
||
</div>
|
||
<div id="vault-xpub" style="display:none;">
|
||
<div class="form-group">
|
||
<label for="addressType">Address type</label>
|
||
<select name="addressType" class="form-control">
|
||
<option value="segwit">Segwit (Recommended, cheapest transaction fee)</option>
|
||
<option value="segwitWrapped">Segwit wrapped (less cheap but compatible with old wallets)</option>
|
||
<option value="legacy">Legacy (Not recommended)</option>
|
||
</select>
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="accountNumber">Account</label>
|
||
<select name="accountNumber" class="form-control">
|
||
@for (int i = 0; i < 20; i++)
|
||
{
|
||
<option value="@i">@i</option>
|
||
}
|
||
</select>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
||
<button id="vault-confirm" class="btn btn-primary" style="display:none;"></button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</template>
|