btcpayserver/BTCPayServer/Views/Stores/RequestPairing.cshtml
dstrukt 03f8d6693d
Improve Access Tokens View (#3118)
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-11-18 10:04:20 +01:00

34 lines
No EOL
1.3 KiB
Text

@model PairingModel
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData.SetActivePageAndTitle(StoreNavPages.Tokens, "Pairing Permission", Context.GetStoreData()?.StoreName);
}
<h3 class="mb-0">@ViewData["PageTitle"]</h3>
<div class="row">
<div class="col-md-4">
<table class="table table-hover removetopborder">
<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>