mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-12 19:02:01 +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>
54 lines
2.5 KiB
Text
54 lines
2.5 KiB
Text
@model LndSeedBackupViewModel
|
|
@{
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services, "LND Seed Backup");
|
|
}
|
|
|
|
<h2 class="mb-4">@ViewData["Title"]</h2>
|
|
|
|
@if (Model.IsWalletUnlockPresent)
|
|
{
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<div class="form-group">
|
|
<p>The LND seed backup is useful to recover funds of your LND wallet in case of a corruption of your server.</p>
|
|
<p>The recovering process is documented by LND on <a href="https://github.com/lightningnetwork/lnd/blob/master/docs/recovery.md">this page</a>.</p>
|
|
</div>
|
|
<a class="btn btn-primary @(Model.Removed ? "collapse" : "")" id="details" href="#">See confidential seed information</a>
|
|
<div class="form-group @(Model.Removed ? "" : "collapse")">
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<label for="Seed" class="input-group-text"><span class="input-group-addon fa fa-eye"></span><span class="ml-2">Seed</span></label>
|
|
</div>
|
|
<textarea id="SeedTextArea" asp-for="Seed" onClick="this.select();" class="form-control" readonly rows="@(Model.Removed ? "1" : "3")"></textarea>
|
|
</div>
|
|
</div>
|
|
@if (!Model.Removed)
|
|
{
|
|
<div class="form-group collapse">
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<label for="WalletPassword" class="input-group-text"><span class="input-group-addon fa fa-lock"></span><span class="ml-2">Password</span></label>
|
|
</div>
|
|
<input id="PasswordInput" asp-for="WalletPassword" onClick="this.select();" class="form-control" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="form-group collapse">
|
|
<form method="get" asp-action="RemoveLndSeed" asp-route-serviceName="@this.Context.GetRouteValue("serviceName")" asp-route-cryptoCode="@this.Context.GetRouteValue("cryptoCode")">
|
|
<button id="delete" class="btn btn-primary" type="submit">Remove Seed from server</button>
|
|
</form>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
@section Scripts {
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#details").click(function () {
|
|
$(".collapse").removeClass("collapse");
|
|
$(this).addClass("collapse");
|
|
});
|
|
});
|
|
</script>
|
|
}
|