mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
* adds pay button icon adds more update icons * reduces update app titles * capitalize PP * more icons notification icon update adds more * Truncate long titles in nav * Adjust "off" color state for the wallet/lightning * Theme switch alignment * Update store selector * adds more space in store selector span * Prevent form zoom on mobile Safari * updates lightning + settings view * updates store icon * adjusts notification icon * removes notifications setting button icon * Update status colors * Fix Lightning nav markup * Prevent icons from shrinking * Move main menu styles to css * Remove max-width container for content area * Update headlines * Use fixed header on mobile * Extract custom pills component * Form field update Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
83 lines
4.7 KiB
Text
83 lines
4.7 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">
|
|
<form method="post" asp-action="WalletReceive" class="text-center">
|
|
@if (string.IsNullOrEmpty(Model.Address))
|
|
{
|
|
<h3 class="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="mb-4">@Model.CryptoCode Address</h3>
|
|
<noscript>
|
|
<div class="m-sm-0 p-sm-0">
|
|
<div class="form-group">
|
|
<input type="text" class="form-control " readonly="readonly" asp-for="Address" id="address"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="text" class="form-control" readonly="readonly" asp-for="PaymentLink" id="payment-link"/>
|
|
</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 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 justify-content-center">
|
|
<a class="btcpay-pill active" data-bs-toggle="tab" href="#link-tab">Link</a>
|
|
<a class="btcpay-pill" 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" style="width:10em;" 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" style="width:10em;" 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>
|
|
}
|
|
</form>
|
|
</div>
|
|
</div>
|