mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-10 09:19:24 +01:00
* Set store context in cookie
* Fix page id usages in view
* Move Pay Button to nav
* Move integrations to plugins nav
* Store switch links to wallet if present
* Test fixes
* Nav fixes
* Fix altcoin view
* Main nav updates
* Wallet setttings nav update
* Move storeId cookie fallback to cookie auth handler
* View fixes
* Test fixes
* Fix profile check
* Rename integrations nav extension point to store-integrations-nav-list
* Allow strings for Active page/category for plugins
* Make invoice list filter based on store context
* Do not set context if we are running authorizer through tag helper
* Fix test and unfiltered invoices
* Add permission helper for wallet links
* Add sanity checks for payment requests and invoices
* Store context in home controller
* Fix PayjoinViaUI test
* Store context for notifications
* Minor UI improvements
* Store context for userstores and vault controller
* Bring back integrations page
* Rename notifications nav pages file
* Fix user stores controller policies
* Controller policy fixes from code review
* CookieAuthHandler: Simplify CanViewInvoices case
* Revert "Controller policy fixes from code review"
This reverts commit 97e8b8379c
.
* Simplify LayoutSimple
* Fix CanViewInvoices condition
Co-authored-by: Kukks <evilkukka@gmail.com>
92 lines
5.4 KiB
Text
92 lines
5.4 KiB
Text
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
@model BTCPayServer.Controllers.WalletReceiveViewModel
|
|
@{
|
|
var walletId = Context.GetRouteValue("walletId").ToString();
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
ViewData.SetActivePage(WalletsNavPages.Receive, $"Receive {Model.CryptoCode}", walletId);
|
|
}
|
|
|
|
@section PageHeadContent
|
|
{
|
|
<link href="~/main/qrcode.css" rel="stylesheet" asp-append-version="true"/>
|
|
}
|
|
|
|
<div class="row no-gutters">
|
|
<div class="col-lg-8 mx-auto my-auto">
|
|
<form method="post" asp-action="WalletReceive" class="card text-center">
|
|
<div class="card-body">
|
|
@if (string.IsNullOrEmpty(Model.Address))
|
|
{
|
|
<h3 class="card-title mb-3">@ViewData["Title"]</h3>
|
|
<button id="generateButton" class="btn btn-lg btn-primary" type="submit" name="command" value="generate-new-address">Generate @Model.CryptoCode address</button>
|
|
}
|
|
else
|
|
{
|
|
<h3 class="card-title mb-4">Next available @Model.CryptoCode address</h3>
|
|
<noscript>
|
|
<div class="card-body m-sm-0 p-sm-0">
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control " readonly="readonly" asp-for="Address" id="address"/>
|
|
<span class="input-group-text fa fa-copy"> </span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" readonly="readonly" asp-for="PaymentLink" id="payment-link"/>
|
|
<span class="input-group-text fa fa-copy"> </span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mt-4">
|
|
<div class="col-12 col-sm-6">
|
|
<button type="submit" name="command" value="generate-new-address" class="btn btn-primary w-100">Generate another address</button>
|
|
</div>
|
|
<div class="col-12 col-sm-6 mt-4 mt-sm-0">
|
|
<button type="submit" name="command" value="unreserve-current-address" class="btn btn-secondary w-100">Unreserve this address</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</noscript>
|
|
<div class="only-for-js card-body m-sm-0 p-sm-0" id="app">
|
|
<div class="mb-4">
|
|
<div class="qr-container tab-content mb-3" id="myTabContent">
|
|
<img src="@Model.CryptoImage" class="qr-icon" alt="@Model.CryptoCode"/>
|
|
<div class="tab-pane show active" id="link-tab" role="tabpanel">
|
|
<vc:qr-code data="@Model.PaymentLink"/>
|
|
</div>
|
|
<div class="tab-pane" id="address-tab" role="tabpanel">
|
|
<vc:qr-code data="@Model.Address"/>
|
|
</div>
|
|
</div>
|
|
<div class="nav nav-pills justify-content-center">
|
|
<a class="nav-link active" data-bs-toggle="tab" href="#link-tab">Link</a>
|
|
<a class="nav-link" data-bs-toggle="tab" href="#address-tab">Address</a>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="input-group" data-clipboard="@Model.Address">
|
|
<input type="text" class="form-control" style="cursor: copy" readonly="readonly" value="@Model.Address" id="address"/>
|
|
<button type="button" class="input-group-text btn btn-outline-secondary" data-clipboard-confirm>Copy address</button>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="input-group" data-clipboard="@Model.PaymentLink">
|
|
<input type="text" class="form-control" style="cursor: copy" readonly="readonly" value="@Model.PaymentLink" id="payment-link"/>
|
|
<button type="button" class="btn btn-outline-secondary" data-clipboard-confirm>Copy link</button>
|
|
</div>
|
|
</div>
|
|
<div class="row mt-4">
|
|
<div class="col-12 col-sm-6">
|
|
<button type="submit" name="command" value="generate-new-address" class="btn btn-primary w-100">Generate another address</button>
|
|
</div>
|
|
<div class="col-12 col-sm-6 mt-4 mt-sm-0">
|
|
<button type="submit" name="command" value="unreserve-current-address" class="btn btn-secondary w-100">Unreserve this address</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|