mirror of
https://github.com/aljazceru/btcpayserver-breez-nodeless-plugin.git
synced 2025-12-17 08:34:20 +01:00
- Fixed controller action references in Info.cshtml - Updated partial view path in Payments.cshtml - Fixed all SetActivePage calls to use BreezSpark - Updated BreezPaymentsTable to BreezSparkPaymentsTable - Fixed CSS IDs and selectors throughout views - All navigation now correctly references BreezSpark controller
49 lines
1.9 KiB
Plaintext
49 lines
1.9 KiB
Plaintext
@using BTCPayServer.Components
|
|
@using BTCPayServer
|
|
@using BTCPayServer.Abstractions.Extensions
|
|
@using BTCPayServer.Client
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@using BTCPayServer.Components.QRCode
|
|
@using BTCPayServer.Components.TruncateCenter
|
|
@model BTCPayServer.Plugins.BreezSpark.PaymentsViewModel
|
|
@{
|
|
var storeId = Context.GetCurrentStoreId();
|
|
|
|
ViewData.SetActivePage("BreezSpark", "Payments", "Payments");
|
|
TempData.TryGetValue("bolt11", out var bolt11);
|
|
}
|
|
|
|
<div class="row mb-4">
|
|
<div class="col-12">
|
|
<div class="d-flex align-items-center justify-content-between mb-3">
|
|
<h3 class="mb-0">
|
|
<span>@ViewData["Title"]</span>
|
|
</h3>
|
|
<div class="d-flex gap-3 mt-3 mt-sm-0">
|
|
|
|
<a permission="@Policies.CanModifyStoreSettings" asp-action="Send" asp-controller="BreezSpark" asp-route-storeId="@storeId" type="submit" class="btn btn-primary">Send</a>
|
|
<a permission="@Policies.CanCreateInvoice" asp-action="Receive" asp-controller="BreezSpark" asp-route-storeId="@storeId" type="submit" class="btn btn-primary">Receive</a>
|
|
</div>
|
|
</div>
|
|
|
|
@if (bolt11 is string bolt11s)
|
|
{
|
|
<div class="payment-box">
|
|
<div class="qr-container" data-clipboard="@bolt11s">
|
|
<vc:qr-code data="@bolt11s"/>
|
|
</div>
|
|
<div class="input-group mt-3">
|
|
<div class="form-floating">
|
|
<vc:truncate-center text="@bolt11s" padding="15" elastic="true" classes="form-control-plaintext" id="Address"/>
|
|
<label for="Address">BOLT11 Invoice</label>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<partial name="BreezSpark/BreezSparkPaymentsTable" model="Model.Payments"/>
|
|
<vc:pager view-model="Model"></vc:pager>
|
|
</div>
|
|
</div> |