btcpayserver/BTCPayServer/Views/UIStores/RequestPairing.cshtml
Andrew Camilleri 3576ebd14f
Public Invoice receipt (#3612)
* Public Invoice receipt

* implement payment,s qr, better ui, and fix invoice bug

* General view updates

* Update admin details link

* Update view

* add missing check

* Refactor

* make payments and qr  shown by default
* move cusotmization options to own ReceiptOptions
* Make sure to sanitize values inside PosData partial

* Refactor

* Make sure that ReceiptOptions for the StoreData is never null, and that values are always set in API

* add receipt link to checkout and add tests

* add receipt  link to lnurl

* Use ReceiptOptions.Merge

* fix lnurl

* fix chrome

* remove i18n parameterization

* Fix swagger

* Update translations

* Fix warning

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2022-07-06 21:14:55 +09:00

34 lines
1.2 KiB
Text

@model PairingModel
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData.SetActivePage(StoreNavPages.Tokens, "Pairing Permission", Context.GetStoreData()?.Id);
}
<h3 class="mb-0">@ViewData["Title"]</h3>
<div class="row">
<div class="col-md-4">
<table class="table table-hover">
<tr>
<th>Label</th>
<td class="text-end">@Model.Label</td>
</tr>
<tr>
<th>SIN</th>
<td class="text-end">@Model.SIN</td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-md-4">
<form asp-action="Pair" method="post">
<div class="form-group">
<label asp-for="StoreId" class="form-label">Pair To Store</label>
<select asp-for="StoreId" asp-items="@(new SelectList(Model.Stores,"Id","Name"))" class="form-select"></select>
<span asp-validation-for="StoreId" class="text-danger"></span>
</div>
<input type="hidden" name="pairingCode" value="@Model.Id" />
<button id="ApprovePairing" type="submit" class="btn btn-primary mt-3" title="Approve this pairing demand">Approve</button>
</form>
</div>
</div>